mIRC Homepage
Posted By: menibotchis why mirc crashs - 24/12/07 12:37 PM
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.
Posted By: Wims Re: why mirc crashs - 24/12/07 03:21 PM
It's probably a while loop, can you paste your code here ?
Posted By: foshizzle Re: why mirc crashs - 24/12/07 04:33 PM
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
Posted By: menibotchis Re: why mirc crashs - 24/12/07 08:09 PM
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
Posted By: argv0 Re: why mirc crashs - 24/12/07 09:02 PM
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.
Posted By: Wims Re: why mirc crashs - 25/12/07 12:09 AM
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.
Posted By: Riamus2 Re: why mirc crashs - 25/12/07 03:00 AM
More likely, the loop isn't called until then.
Posted By: Lpfix5 Re: why mirc crashs - 27/12/07 12:17 AM
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.
© mIRC Discussion Forums