AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Memory Leak Tips? (https://forums.alliedmods.net/showthread.php?t=28316)

Smokey485 05-12-2006 12:52

Memory Leak Tips?
 
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 :(

Twilight Suzuka 05-12-2006 15:58

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.

jtp10181 05-12-2006 19:15

if you use recursion you can create memory overflow problems but as twilight said a plugin can't really leak memory.

Smokey485 05-12-2006 19:35

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

*cough* harbus Tsrp plugins


Well, big arrays, true :\

Twilight Suzuka 05-12-2006 20:14

That isn't the plugin; it is a plugin abusing a module.

Smokey485 05-12-2006 20:37

Harbu half-assed his plugins anyway :\

thankyou though.

KWo 05-14-2006 07:08

Can someone take a look at the results of the tests I did about memory usage? Look here.


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

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