Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
ASSS for Windows and memory leak?

 
Post new topic   Reply to topic Printable version
 View previous topic  Windows version of ASSS Post :: Post Anyone else have a problem with this c...  View next topic  
Author Message
Bak
?ls -s
0 in


Age:26
Gender:Gender:Male
Joined: Jun 11 2004
Posts: 1826
Location: USA
Offline

PostPosted: Wed Aug 04, 2004 11:35 am    Post subject: ASSS for Windows and memory leak? Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List AIM Address
CypherJF
I gargle nitroglycerin


Gender:Gender:Male
Joined: Aug 14 2003
Posts: 2582
Location: USA
Offline

PostPosted: Wed Aug 04, 2004 11:52 am    Post subject: Reply to topic Reply with quote

Interesting thought..
_________________
Performance is often the art of cheating carefully. - James Gosling
Back to top
View users profile Send private message Add User to Ignore List
Mine GO BOOM
Hunch Hunch
What What
Hunch Hunch<br>What What


Age:42
Gender:Gender:Male
Joined: Aug 01 2002
Posts: 3615
Location: Las Vegas
Offline

PostPosted: Wed Aug 04, 2004 11:54 am    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List Send email
Dr Brain
Flip-flopping like a wind surfer


Age:39
Gender:Gender:Male
Joined: Dec 01 2002
Posts: 3502
Location: Hyperspace
Offline

PostPosted: Wed Aug 04, 2004 12:06 pm    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List AIM Address Yahoo Messenger MSN Messenger
Grelminar
Creator of Asss


Joined: Feb 26 2003
Posts: 378
Offline

PostPosted: Thu Aug 05, 2004 1:39 am    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List Send email Visit posters website
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> ASSS Questions All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 29 page(s) served in previous 5 minutes.

phpBB Created this page in 0.645862 seconds : 27 queries executed (96.1%): GZIP compression disabled