GMMap AfterPageLoaded Endless Loop

后端 未结 2 834
名媛妹妹
名媛妹妹 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:38

    I've had the same issue, but it seems that it is solved now!It happened at users who had IE 8 version on their machines - but I don't really know, why...

    What is important though, is updating the IE to the latest version solves the problem!

    0 讨论(0)
  • 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

    0 讨论(0)
提交回复
热议问题