sometimes and for various reasons, scripts, that we use for collecting infos from internet, go in a infinite research (or loops?) and block the program (i have to stop program with a Ctrl+Alt+Del call).
Is there a way to keep a control of program also during these script's researches like a [STOP RESEARCH] button?
have a sunny day
ABN
[REQ] a script blocker
mmmm.... i'm going to study the reason behind an error that happened today (but it already happened, with different scripts and movies, other times with same "crash"):antp wrote:If it is a loop in the code you can click the "stop" button of the script window.
And for downloading pages and images there is a timeout of 60 seconds or something like that.
Movie Name: Ocean's
Script: Leonardo.Filmup (...my script

script shows (as expected) both the "eleven" and "twelve" movies.
with eleven everything it's ok
with twelve goes into a block, and STOP button doesn't interrupt it.
so maybe i should move this argument into "Bugs Area" as a "stop button" problem (and, of course, i'm going to analyze this episode for changing/updatin' script)....
ciao
ABN
Actually you're right, there is a bug
I do not know why the "stop" button is not enabled until the program is paused on a breakpoint.
The loop seems to happen in
if you put a breakpoint after the "repeat" line then you'll be able to stop it

The loop seems to happen in
Code: Select all
repeat
LineNr := LineNr + 1;
Line := Page.GetString(LineNr);
HTMLRemoveTags(Line);
until Line<>'';