mIRC Homepage
Posted By: sardak Strange Problem - 07/08/03 06:04 AM
I'm having a rather odd problem with my scripts. Periodically, I'll accidentally introduce an infinite loop that I must control+break out of. After the control break, all scripting actions stop working, including aliases, popups, remote, etc.

I've tried unloading and reloading the script files, turning off and back on the remote, events, raw, ctcps, etc. flags. I've tried restarting mIRC.

It seems the only resolution that works is to completely reboot my computer, which I dislike doing for various reasons.

Is there any command or action I can take to resolve this issue without such a drastic solution?
Posted By: Om3n Re: Strange Problem - 07/08/03 07:27 AM
Hmmz, i tried to reproduce the problem myself, but with no luck.
Ctrl+break should ONLY halt the currently active remote/alias ect.

The only thing i can think of is that the alias/remote file that you are using is too large and brackets are being dropped as a result (this has the potential to render the script file useless.) Of corse, that doesn't explain why reloading the scripts would not work. Check you do not have any aliases related to /remote* /reload* ect that would stop them from functioning normally. Other than that i can't think of anything right now.
Posted By: sardak Re: Strange Problem - 07/08/03 03:31 PM
I've since deleted the short script that caused the original problem, so my alias file is 29 lines, and my remote file is 12 lines, so length isn't an issue. There are no references to remote or reload anywhere in either file. All brackets match up fine, and in fact, even 1 line aliases cause the problem.

It seems to happen every time for me, odd that it's not reproducable.
Posted By: Om3n Re: Strange Problem - 08/08/03 06:23 AM
Hmmz, yes very troubling lolz... care to share an example of an alises/remote that causes this?
Posted By: sardak Re: Strange Problem - 08/08/03 02:58 PM
The original problem began when I was running through a loop, and accidentally /set %i (%i + 1), and it became the string as opposed to the quantity. So, of course, %i was never equal to %n, and it went into an infinite loop. I control+break'd out of this.

Afterwards, any script, no matter how simple or complex, stopped working. Even the popups stopped popping up. As a test, I tried the alias:

/test /echo test

And it caused a break error on that line.
© mIRC Discussion Forums