mIRC Homepage
Posted By: Riamus Remotes problem - 10/08/04 03:30 PM
I've been running a trivia bot for a couple years and only recently ran into a problem. For some reason, when I start the script, it takes a couple minutes to start mIRC up. Then, once it's up, it works normally... except one thing. When I open Remotes, it opens fine, saves/loads fine and everything... but when I press OK, it takes a couple minutes to close the Remotes window (or aliases or whatever). During that period, the script/mirc is frozen and using about 100% of CPU. Ctrl-Break doesn't do anything since it's not a script that's running, but the Remotes trying to close.

I tried updating it from 6.14 to 6.16 and had the same results, so I know it's not the EXE. Any other possibilities?
Posted By: Online Re: Remotes problem - 10/08/04 03:37 PM
You're probably overloaded with vaiables. Type /unsetall to get rid of them. But backup your script before doing that, in case anything goes wrong afterwards.
Posted By: Mentality Re: Remotes problem - 10/08/04 03:37 PM
Any antivirus programs installed? I know Norton Antivirus causes there to be a slow opening of the Scripts Editor but only if 'Auto Protect' is enabled, and I've never seen it be as bad as 2 minutes.

Regards,
Posted By: Securix Re: Remotes problem - 11/08/04 12:13 AM
Maybe you have a lot of remote files loaded... You should unload unused functions.
Posted By: Naz Re: Remotes problem - 11/08/04 11:00 AM
You might also need to defragment your hard drive. mIRC remotes can lag badly when a drive is very fragmented.
Posted By: Riamus Re: Remotes problem - 12/08/04 04:30 AM
Thanks! It was the variables being overloaded. I didn't think to look at them... apparently a script I had wasn't unsetting variables and since it set variables dynamically, it ended up creating a 1.85MB variables file over time without me knowing it. Oops. smile

Another reason to always unset your variables. smile

Thanks again.
Posted By: Online Re: Remotes problem - 12/08/04 05:25 AM
You're welcome laugh

As a side note, that's exactly why I prefer to use hash tables instead of variables for storing large amount of data. For some reason, Khaled chose to save the variables in INI format, which takes much longer to parse than a 'native' hash table file, like the one created by /hsave.
© mIRC Discussion Forums