mIRC Home    About    Download    Register    News    Help

Print Thread
why mirc crashs #192194 24/12/07 12:37 PM
Joined: Dec 2007
Posts: 4
M
menibotchis Offline OP
Self-satisified door
OP Offline
Self-satisified door
M
Joined: Dec 2007
Posts: 4
i have built a bot that takes lines from 1 server and paste it to main server (7 servers connected total)

+

the bots counts line and sh*t like that.

everything was great.
now, around 10-15 min after the bots working it crashs.
i can "save" him by pressing control+break
but in the status i dont see the script's name + line that's currpted

what else can i do?

and, is there any way to "do" control+break with command and not manualy?

10x.

Re: why mirc crashs [Re: menibotchis] #192196 24/12/07 03:21 PM
Joined: Jul 2006
Posts: 3,574
W
Wims Offline
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 3,574
It's probably a while loop, can you paste your code here ?


Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net
Re: why mirc crashs [Re: Wims] #192199 24/12/07 04:33 PM
Joined: Aug 2007
Posts: 333
foshizzle Offline
Fjord artisan
Offline
Fjord artisan
Joined: Aug 2007
Posts: 333
any sort of loops other than aliases crash if you make it infanite... takes to much memory for mIRC to be able to run... mIRC scripting language uses a lot of your comp's resources/power to run frown


This is not the signature you are looking for
Re: why mirc crashs [Re: foshizzle] #192214 24/12/07 08:09 PM
Joined: Dec 2007
Posts: 4
M
menibotchis Offline OP
Self-satisified door
OP Offline
Self-satisified door
M
Joined: Dec 2007
Posts: 4
is there any way to "do" control+break with command and not manualy?

the script is 850 lines..
the break error wont return me the "bad" loop.. that's the thing

if it was, i could have fix it allready

Re: why mirc crashs [Re: menibotchis] #192217 24/12/07 09:02 PM
Joined: Oct 2003
Posts: 3,918
A
argv0 Offline
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
To break out of a loop in a script you simply use the "break", "return" or "halt" commands. Each one does a different thing, I suggest looking them up in the /help

That's not really how you solve broken loops though. An infinite loop means you didn't specify an end condition.

Read http://www.kthx.net/ftb to find out where the bug in your code is.


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"
Re: why mirc crashs [Re: argv0] #192230 25/12/07 12:09 AM
Joined: Jul 2006
Posts: 3,574
W
Wims Offline
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 3,574
Originally Posted By: argv0
An infinite loop means you didn't specify an end condition.


Not in his case, apparently, his loop become infinite after 10-15 min.


Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net
Re: why mirc crashs [Re: Wims] #192233 25/12/07 03:00 AM
Joined: Oct 2004
Posts: 8,327
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,327
More likely, the loop isn't called until then.


Invision Support
#Invision on irc.irchighway.net
Re: why mirc crashs [Re: menibotchis] #192281 27/12/07 12:17 AM
Joined: Aug 2005
Posts: 1,052
L
Lpfix5 Offline
Hoopy frood
Offline
Hoopy frood
L
Joined: Aug 2005
Posts: 1,052
There shouldnt be really too many remotes if there is, unload them all then load them one by one till problem arises then youll know which script to work on.


Code:
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }