delphi-maps icon indicating copy to clipboard operation
delphi-maps copied to clipboard

DemoGoogleMaps raise an Exception during TGPolygon.Destroy

Open GoogleCodeExporter opened this issue 10 years ago • 0 comments

Hello!

1. Start DemoGoogleMaps.exe
2. Press second Polygon button
3. Close application

Exception class EInvalidPointer with message 'Invalid pointer operation'. 

TfrmMain.btnTestPolyGon2Click has code:

      PolyLine.AddPoint(Location);
      Marker := TGMarker.Create(
                  Location,
                  GoogleMaps1,
                  'This is point '+IntToStr(I),
                  'http:...'
                );

Location is destroyed in TGMarker.Destroy
and then in TGPolygon.Destroy.

Original issue reported on code.google.com by [email protected] on 22 Sep 2011 at 2:00

GoogleCodeExporter avatar Mar 25 '15 00:03 GoogleCodeExporter