GMMap AfterPageLoaded Endless Loop

后端 未结 2 835
名媛妹妹
名媛妹妹 2021-01-27 23:00

I wrote an application using GMLIb a couple of years ago and it has been working up until yesterday. I read the fix, got a key, recompiled the code with v1.5.4 and v1.5.5 and ha

2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-27 23:43

    Not so much of an answer, but a very similar issue and - I think - a workaround.

    Again, this only affects certain machines, most have IE10 installed. My issue is not that First is never true but that it is always true.

    procedure TFMain.GMMapAfterPageLoaded(Sender: TObject; First: Boolean);
    begin
    
        if (First) and (PLCount = 0) then    // was just if First then
        begin
            GMMap.DoMap;
            BShowInfo.Enabled := True;
        end;
        Inc(PLCount);
    end;
    

    Altering GMMapAfterPageLoaded as above (initialising PLCount to 0 first) seems to give the DoMap call enough time to work properly

提交回复
热议问题