AV when setting an xy value on TMapSeries

TeeChart FireMonkey (Windows,OSX,iOS & Android) for Embarcadero RAD Studio, Delphi and C++ Builder (XE5+)
Post Reply
Russell
Newbie
Newbie
Posts: 6
Joined: Thu Oct 25, 2012 12:00 am

AV when setting an xy value on TMapSeries

Post by Russell » Thu Oct 10, 2013 4:58 pm

The following code generates an exception. I'm, sure I'm just missing something simple:

FMapSeries.ValuesList.Clear;
FMapSeries.AddXY(aLatitude, aLongitude);

The exception is:

exception class : EAccessViolation
exception message : Access violation at address 00BAA479 in module 'Brooches.exe'. Read of address 00000004.

main thread ($1384):
00baa479 +03d Brooches.exe FMXTee.Series.Surface TCustom3DPaletteSeries.GetValueColor
00bbb007 +07b Brooches.exe FMXTee.Series.Map TTeePolygon.Draw
00bbb6bb +033 Brooches.exe FMXTee.Series.Map TMapSeries.DrawValue
00b64a1f +063 Brooches.exe FMXTee.Engine DoDrawIndex
00b64d27 +207 Brooches.exe FMXTee.Engine TChartSeries.DrawAllValues
00bbca2b +39b Brooches.exe FMXTee.Series.Map TMapSeries.DrawAllValues
00b6b989 +071 Brooches.exe FMXTee.Engine ClipRegionCreate
00b6c0b3 +3cf Brooches.exe FMXTee.Engine DrawSeries
00b6c175 +045 Brooches.exe FMXTee.Engine DoDraw
00b6c280 +088 Brooches.exe FMXTee.Engine DrawAllSeries
00b6c335 +059 Brooches.exe FMXTee.Engine TCustomAxisPanel.DrawAxesSeries
00b6b7b4 +1c8 Brooches.exe FMXTee.Engine TCustomAxisPanel.InternalDraw
00b8bc41 +005 Brooches.exe FMXTee.Chart TCustomChart.InternalDraw

Yeray
Site Admin
Site Admin
Posts: 9614
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: AV when setting an xy value on TMapSeries

Post by Yeray » Fri Oct 11, 2013 11:55 am

Hi,

I don't get any error with this simple example:

Code: Select all

procedure TForm1.FormCreate(Sender: TObject);
begin
  with Chart1.AddSeries(TMapSeries) as TMapSeries do
  begin
    FillSampleValues;
    Clear;
    AddXY(10, 20);
  end;
end;
But, anyway, this isn't the proper way to populate this series type. Note the Add* methods are inherited from its parents but, the MapSeries works with Shapes.
Here it is an example showing how to populate it.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Russell
Newbie
Newbie
Posts: 6
Joined: Thu Oct 25, 2012 12:00 am

Re: AV when setting an xy value on TMapSeries

Post by Russell » Fri Oct 11, 2013 1:17 pm

Thanks, I am just trying to add a point for a location.

This is strange that it seems to be a problem with the colour.

Yeray
Site Admin
Site Admin
Posts: 9614
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: AV when setting an xy value on TMapSeries

Post by Yeray » Fri Oct 11, 2013 2:03 pm

Hi,

Have you tried to use a TPointSeries to mark a point into a TMapSeries?
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply