WouterVanNifterick / delphi-maps

Delphi Mapping components with example applications
16 stars 9 forks source link

DemoGoogleMaps raise an Exception during TGPolygon.Destroy #3

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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 alshesta...@gmail.com on 22 Sep 2011 at 2:00