Page 1 of 1

[REQ] a script blocker

Posted: 2005-04-14 07:41:15
by ABNormal
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

Posted: 2005-04-14 08:39:42
by antp
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.

Posted: 2005-04-14 09:13:11
by ABNormal
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.
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"):
Movie Name: Ocean's
Script: Leonardo.Filmup (...my script :cry: )

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

Posted: 2005-04-14 12:50:20
by antp
Actually you're right, there is a bug :D 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

Code: Select all

      repeat
        LineNr := LineNr + 1;
        Line := Page.GetString(LineNr);
        HTMLRemoveTags(Line);
      until Line<>'';
if you put a breakpoint after the "repeat" line then you'll be able to stop it