Raised This Month: $ Target: $400
 0% 

Memory Leak Tips?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Smokey485
Senior Member
Join Date: Dec 2004
Location: Newt 'Ellin
Old 05-12-2006 , 12:52   Memory Leak Tips?
Reply With Quote #1

I need tips on clearing the memory with AMXX and making sure stuff doesn't have any memory leaks, its becoming a problem with some of my plugins
__________________
+karma if I am helpful to you.
I am one in a few million.
Smokey485 is offline
Send a message via AIM to Smokey485 Send a message via MSN to Smokey485
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 05-12-2006 , 15:58  
Reply With Quote #2

You can't HAVE a memory leak; nothing is allocated on the heap. The only thing you CAN have, is lots and lots of unused, but still allocated, memory, from big arrays and such.
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
jtp10181
Veteran Member
Join Date: May 2004
Location: Madison, WI
Old 05-12-2006 , 19:15  
Reply With Quote #3

if you use recursion you can create memory overflow problems but as twilight said a plugin can't really leak memory.
__________________
jtp10181 is offline
Send a message via ICQ to jtp10181 Send a message via AIM to jtp10181 Send a message via MSN to jtp10181 Send a message via Yahoo to jtp10181
Smokey485
Senior Member
Join Date: Dec 2004
Location: Newt 'Ellin
Old 05-12-2006 , 19:35  
Reply With Quote #4

Leak memory into HLDS, yeah it can.. i've seen it in plugins before

*cough* harbus Tsrp plugins


Well, big arrays, true :\
__________________
+karma if I am helpful to you.
I am one in a few million.
Smokey485 is offline
Send a message via AIM to Smokey485 Send a message via MSN to Smokey485
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 05-12-2006 , 20:14  
Reply With Quote #5

That isn't the plugin; it is a plugin abusing a module.
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
Smokey485
Senior Member
Join Date: Dec 2004
Location: Newt 'Ellin
Old 05-12-2006 , 20:37  
Reply With Quote #6

Harbu half-assed his plugins anyway :\

thankyou though.
__________________
+karma if I am helpful to you.
I am one in a few million.
Smokey485 is offline
Send a message via AIM to Smokey485 Send a message via MSN to Smokey485
KWo
AMX Mod X Beta Tester
Join Date: Jul 2004
Location: Poland
Old 05-14-2006 , 07:08  
Reply With Quote #7

Can someone take a look at the results of the tests I did about memory usage? Look here.
__________________
The Fullpack of podbot mm V3B22 - 24 apr 2012!!! is available here.
The All-In-One 3.2a package - 02 jun 2013 (AMX X 1.8.2 [with ATAC 3.0.1b , CSDM2.1.3c beta, CM OE 0.6.5, podbot mm V3B22c and mm 1.20) is available here.
The newest Beta V3B23a (rel. 28 august 2018!!!) is available here.
KWo is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:07.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode