mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Aug 2010
Posts: 134
T
Thels Offline OP
Vogon poet
OP Offline
Vogon poet
T
Joined: Aug 2010
Posts: 134
When you close mIRC, does it close all the hash tables and .dlls? Or do those stay loaded?

I close hash tables when I don't need them anymore, but some hash tables I always need as long as mIRC's open. I'm not using any .dlls, but I'm planning to use spaces.dll, which will be used so often that closing it while mIRC is running is pointless.

But should I make sure to close all hash tables and dlls on exit, or will mIRC do that?


Learning something new every day.
Joined: Jan 2007
Posts: 1,156
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2007
Posts: 1,156
You need to use the command /hsave to save your hash tables before they close. Then use /hload when you want to start them.

Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Hash tables, similar to files on your hard drive, are only "opened" (not technically the correct term for hash tables), when you actually access them using commands like /hadd, /hinc, /hdec, $hget, $hfind, etc.
The tables are stored in RAM from the time they are created with /hmake or /hadd -m
They stay in RAM until you close mIRC or use the /hfree command.

As stated, you can (and usually should), use the /hsave command to save the information from your hash table to a file on your hard drive.

DLL's, on the other hand, if I recall correctly (don't use them much myself), stay loaded until they are unloaded via a command to the DLL. See
Quote:
/help DLL Support
for more details.

Joined: Aug 2010
Posts: 134
T
Thels Offline OP
Vogon poet
OP Offline
Vogon poet
T
Joined: Aug 2010
Posts: 134
Yeah, I of course save the hash tables that are worth saving (some have read only data, and some have temporary variables that will be reinitialized next time mIRC starts, so they're not worth saving).

The question was if they kept occupying space after mIRC closes down, or if mIRC closes them on shutdown.

I guess I'll just play it safe and close all hash tables and dlls on exit.


Learning something new every day.
Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
Originally Posted By: Thels
The question was if they kept occupying space after mIRC closes down, or if mIRC closes them on shutdown.
When mirc closes down, all memory associated with it is freed by Windows, if not by mirc itself. There is no need for any sort of cleanup on your part.


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
Joined: Apr 2003
Posts: 342
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Apr 2003
Posts: 342
Originally Posted By: qwerty
Originally Posted By: Thels
The question was if they kept occupying space after mIRC closes down, or if mIRC closes them on shutdown.
When mirc closes down, all memory associated with it is freed by Windows, if not by mirc itself. There is no need for any sort of cleanup on your part.


This is like saying "just pull the plug on the computer at anytime when you are done using it, all the memory will be freed when power is lost"


Beware of MeStinkBAD! He knows more than he actually does!
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Not quite. Letting Windows/mIRC close memory related items such as hash tables by itself when exiting mIRC is going to "safely" close everything. Cutting power from the computer while it's running doesn't allow anything a chance to "safely" close stuff down. There's a pretty significant difference there.


Invision Support
#Invision on irc.irchighway.net

Link Copied to Clipboard