How to find out of the "recursion" problem?
#1

Код:
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase

Header size:          11204 bytes
Code size:          1351736 bytes
Data size:          1774136 bytes
Stack/heap size:      16384 bytes; estimated max. usage: unknown, due to recursion
Total requirements: 3153460 bytes
================ READY =
This is what the compiler tells me now. And uhm, it always did, but i have seen an increasing amount of ram being used when the server is running. It starts normally and works perfectly, but the ram usage is increasing by time.

The script has around 20k lines of code written by me, and its too damn hard searching trough it for the error manually.

Any ideas how to find "the function which starts itself (or similar)" to modify and get rid of the problem?

My Arrays are all modified to contain nothing more than it should (i don't use [256] for a 30 character long message for example) - I've read through the guides and so on. Noone is explaining actually how to find such problems in your script, so it could have been useful to get any ideas where to look

So, thanks for any ideas and comments for my problem! ^^
Reply
#2

It shouldn't be a problem at all. (That will teach you to throw all your code into one file use modules)
Reply
#3

Quote:
Originally Posted by Pottus
Посмотреть сообщение
It shouldn't be a problem at all. (That will teach you to throw all your code into one file use modules)
Yeah, im using different files for different things, just used as includes in the Gamemode.

Like the maps, teleport-cmds, dialogs. and so on...

But that wasn't my problem; if there is a function starting itself all over and over again, wouldn't that require some performance on the server at the end?

Or is this harmless?
Reply
#4

Quote:
Originally Posted by airplanesimen
Посмотреть сообщение
Yeah, im using different files for different things, just used as includes in the Gamemode.

Like the maps, teleport-cmds, dialogs. and so on...

But that wasn't my problem; if there is a function starting itself all over and over again, wouldn't that require some performance on the server at the end?

Or is this harmless?
Really depends on what it is.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)