delphi-maps
delphi-maps copied to clipboard
DemoGoogleMaps raise an Exception during TGPolygon.Destroy
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