Ian
2014-05-03 19:16:56
Background:
This part of the code should be waiting until the bankScreen is closed or the time since mark T is past 2500-3500. The issue is that the bankScreen closes as it should, but the script does not continue on to the writeLn immediately after the loop. It stops writing True once the bankScreen has closed, so I don't think it's stuck in the loop still. I'm just not sure what it's doing. Also the script does not end itself, it just doesn't do anything. Eventually RS logs it out due to inactivity. Also this does not happen every time, maybe 1/30 of the time or less.
If anyone has any ideas of what it is doing it would be very helpful.
Here is the part of the code that is not acting as I think it should:
This is the debug from that:
This part of the code should be waiting until the bankScreen is closed or the time since mark T is past 2500-3500. The issue is that the bankScreen closes as it should, but the script does not continue on to the writeLn immediately after the loop. It stops writing True once the bankScreen has closed, so I don't think it's stuck in the loop still. I'm just not sure what it's doing. Also the script does not end itself, it just doesn't do anything. Eventually RS logs it out due to inactivity. Also this does not happen every time, maybe 1/30 of the time or less.
If anyone has any ideas of what it is doing it would be very helpful.
Here is the part of the code that is not acting as I think it should:
T.start;
R:= randomRange(2500, 3500);
writeLn('Waiting for bankScreen to close.');
while (bankScreen.isOpen) and (T.getTime < R) do
begin
wait(random(100));
writeLn(bankScreen.isOpen);
end;
writeLn('test?');
This is the debug from that:
Waiting for bankScreen to close.
True
True
True
True
True
True
True
True
True
True
True
True
True
True