Author |
Message |
Bak ?ls -s 0 in

Age:26 Gender: Joined: Jun 11 2004 Posts: 1826 Location: USA Offline
|
Posted: 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? |
|
Back to top |
|
 |
CypherJF I gargle nitroglycerin

Gender: Joined: Aug 14 2003 Posts: 2582 Location: USA Offline
|
Posted: Wed Aug 04, 2004 11:52 am Post subject: |
 |
|
|
|
Interesting thought.. _________________ Performance is often the art of cheating carefully. - James Gosling |
|
Back to top |
|
 |
Mine GO BOOM Hunch Hunch What What

Age:42 Gender: Joined: Aug 01 2002 Posts: 3615 Location: Las Vegas Offline
|
Posted: 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. |
|
Back to top |
|
 |
Dr Brain Flip-flopping like a wind surfer

Age:39 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: 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? _________________ Hyperspace Owner
Smong> so long as 99% deaths feel lame it will always be hyperspace to me |
|
Back to top |
|
 |
Grelminar Creator of Asss
Joined: Feb 26 2003 Posts: 378 Offline
|
Posted: 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. |
|
Back to top |
|
 |
|