Server Help

ASSS Questions - ASSS for Windows and memory leak?

Bak - Wed Aug 04, 2004 11:35 am
Post subject: ASSS for Windows and memory leak?
I use catid's ASSS and just realized that when I close the server with the (X) in the corner the modules never get unloaded, and therefore memory that I have allocated never gets freed. It seems like this would cause a pretty big memory leak, or does most of the ASSS get deallocated somehow?

Am I wrong? Or should I just always use ?shutdown to close the server?
CypherJF - Wed Aug 04, 2004 11:52 am
Post subject:
Interesting thought..
Mine GO BOOM - Wed Aug 04, 2004 11:54 am
Post subject:
Read up a bit about Operating systems and virtual memory. If you force close a program, it will deallocate all the memory, and most of the system resources it had requested. There are a few things it won't deallocate for you, but nothing that ASSS uses. So force closing it won't screw up your computer, but it may not save everything in the server correctly.

Yes, you should use ?shutdown to close a server correctly. Maybe I'll look up on some code on MSDN about consoles catching a close-request or whatever hitting the 'X' on the console is called.
Dr Brain - Wed Aug 04, 2004 12:06 pm
Post subject:
Been a while since I've run ASSS on windows, but doesn't ctrl+c close the server cleanly?
Grelminar - Thu Aug 05, 2004 1:39 am
Post subject:
Not on windows; the code that handles ctrl+c uses signal(2) and is unix-specific. MGB just sent me some code that does the same for windows, though, so it'll work eventually.
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group