GMMap AfterPageLoaded Endless Loop

谁说我不能喝 提交于 2019-12-31 06:56:29

问题


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 have the same result.

The code is caught in an endless loop at AfterPageLoaded

if First then FGMMap.DoMap;

First is never true.

Is anyone else experience this problem. XE7 on Win7 64

20/05/2017 Removed GMLib. Reinstalled. Compiled and ran the Megademo and the result is the same. An endless loop at AfterPageLoaded.

Created a simple test program using GMMap component and the result is the same.


回答1:


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!




回答2:


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



来源:https://stackoverflow.com/questions/44064461/gmmap-afterpageloaded-endless-loop

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!