GMLib MegaDemo.exe Won't load

495 views Asked by At


The map won't load anymore on the megademo.exe.
The problem start when i put: GMMap1.Active := True;

Thanks for the help.

2

There are 2 answers

2
Maxim Dmitryenko On BEST ANSWER

try this

var
  FMapLoaded: boolean;

procedure TMainForm.GMMapAfterPageLoaded(Sender: TObject;
  First: Boolean);
begin
  inherited;
  if First and not FMapLoaded then
  begin
    GMMap.DoMap;
    FMapLoaded := True;
  end;
end;
0
cadetill On

To solve this problem, you must to change the method TGMMap.DocumentComplete from GMMapVCL unit with this

before

if (pDisp = CurDispatch) then

after

if not FDocLoaded and (pDisp = CurDispatch) then