Official Soldat Forums
Server Talk => Scripting Discussions and Help => Topic started by: Hacktank on April 27, 2009, 04:43:51 pm
-
Now that my server running my ZRPG script is on EnEsCe I have noticed that it's memory usage continually grows, it starts around 15 or so MB and gains a megabyte about every minute or so. I have no idea what is causing this. Does anyone know?
-
Variables maybe?
-
Dynamic arrays are usually the cause. Or anything involving SetArrayLength etc
-
Dynamic arrays are usually the cause. Or anything involving SetArrayLength etc
That would have to be it, I added a bordertext function that uses SetArrayLength. I know of a cheap but functional workaround. Thank you!
EDIT: I got rid of the only SetArrayLengths I added since I noticed this problem and its still doing it, also there is a setarraylentgh in PlaceBot, Xsplit, and my INI functions. Is there any way to fix this problem?
-
There was a ReadIni being called every 10 seconds that was somehow causing this problem. Problem Solved.
-
Yeah ReadINI has a pretty horrible memory leak. I only call it on ActivateServer.
-
EnEsCe,
It woud be great if you fix ReadINI();
(and maybe add WriteINI();)