Page 1 of 1

Since the boss said no problem, I edit the topic :D

Posted: 27.11.2017 17:34
by wokao98
Since the boss said no problem, I edit the topic :D

Re: report bug with v8.6.0

Posted: 28.11.2017 8:14
by Vizit0r
GetGumpInfo(GetGumpsCount-1, gumpInfo);
wait(WaitTime);
while gumpInfo.XmfHTMLGumpColor[2].Hue <> 16927 do begin
if Dead or not Connected then Exit;
NumGumpButton(GetGumpsCount-1,4);
CheckLag(60000);
wait(100);
GetGumpInfo(GetGumpsCount-1, gumpInfo);
wait(100);
end;

often get the out of range error
ofcourse.
Because no any guarantee that gumpinfo will be always taken with XmfHTMLGumpColor array. You make no checks f.e. Length(XmfHTMLGumpColor) > 0, just directly taking array element value. If array empty = error.
It's your bug, not stealth.

Since the boss said no problem, I edit the topic :D

Posted: 28.11.2017 11:46
by wokao98
Since the boss said no problem, I edit the topic :D

Re: report bug with v8.6.0

Posted: 28.11.2017 13:10
by Vizit0r
Line, where error raised, is
while gumpInfo.XmfHTMLGumpColor[2].Hue <> 16927 do
?