I am using Delphi Tokyo 10.2 update 3 and TWebGMaps ver 2.9.5.0.
I have a form hosting a TWebGMaps control:
object Form3: TForm3
Left = 0
Top = 0
Caption = 'Map'
ClientHeight = 231
ClientWidth = 505
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'Tahoma'
Font.Style = []
OldCreateOrder = False
Position = poMainFormCenter
PixelsPerInch = 96
TextHeight = 13
object WebGMaps1: TWebGMaps
Left = 0
Top = 0
Width = 505
Height = 231
Align = alClient
Clusters = <>
Markers = <>
Polylines = <>
Polygons = <>
Directions = <>
MapOptions.DefaultLatitude = 48.859040000000000000
MapOptions.DefaultLongitude = 2.294297000000000000
Routing.PolylineOptions.Icons = <>
StreetViewOptions.DefaultLatitude = 48.859040000000000000
StreetViewOptions.DefaultLongitude = 2.294297000000000000
MapPersist.Location = mplInifile
MapPersist.Key = 'WebGMaps'
MapPersist.Section = 'MapBounds'
PolygonLabel.Font.Charset = DEFAULT_CHARSET
PolygonLabel.Font.Color = clBlack
PolygonLabel.Font.Height = -16
PolygonLabel.Font.Name = 'Arial'
PolygonLabel.Font.Style = []
TabOrder = 0
Version = '2.9.5.0'
end
end
Left = 0
Top = 0
Caption = 'Map'
ClientHeight = 231
ClientWidth = 505
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'Tahoma'
Font.Style = []
OldCreateOrder = False
Position = poMainFormCenter
PixelsPerInch = 96
TextHeight = 13
object WebGMaps1: TWebGMaps
Left = 0
Top = 0
Width = 505
Height = 231
Align = alClient
Clusters = <>
Markers = <>
Polylines = <>
Polygons = <>
Directions = <>
MapOptions.DefaultLatitude = 48.859040000000000000
MapOptions.DefaultLongitude = 2.294297000000000000
Routing.PolylineOptions.Icons = <>
StreetViewOptions.DefaultLatitude = 48.859040000000000000
StreetViewOptions.DefaultLongitude = 2.294297000000000000
MapPersist.Location = mplInifile
MapPersist.Key = 'WebGMaps'
MapPersist.Section = 'MapBounds'
PolygonLabel.Font.Charset = DEFAULT_CHARSET
PolygonLabel.Font.Color = clBlack
PolygonLabel.Font.Height = -16
PolygonLabel.Font.Name = 'Arial'
PolygonLabel.Font.Style = []
TabOrder = 0
Version = '2.9.5.0'
end
end
When I execute run code twice, I encounter Access Violation on and off:
var F: TForm3;
begin
F := TForm3.Create(nil);
try
F.ShowModal;
finally
F.Release;
end;
try
F.ShowModal;
finally
F.Release;
end;
end;
If using FastMM4 as memory manager, the Access Violation always happen.