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?
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.
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,
Maybe you have a lot of remote files loaded... You should unload unused functions.
You might also need to defragment your hard drive. mIRC remotes can lag badly when a drive is very fragmented.
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.
Another reason to always unset your variables.
Thanks again.
You're welcome
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.