estimated max. usage: unknown, due to recursion
#1

pawn Код:
Header size:           6756 bytes
Code size:          1867228 bytes
Data size:         15431628 bytes
Stack/heap size:      32768 bytes; estimated max. usage: unknown, due to recursion
Total requirements:17338380 bytes
What's the problem??!!
Reply
#2

The message appears if the compiler thinks that your scripts could case a heap / stack collision
That happens if one of your function uses to much local memory

In your case the compiler couldn't calculate it because your function is recursive like
pawn Код:
stock pCountdown(count) if(count> 0) printf("%d", count), pCountdown(--count); else print("Start");
You should change that code to a for / while loop

Its not something to worry about if you know what you are doing (many people don't)
But still you should take a look inside the code and check if you can reduce the stack usage (local variables) or make it non recursive

If a real collision happens (while running the script) you will get an error message in your samp-server console

Alternative you can increase the stack size but thats is not a solution only a workaround
Reply
#3

How can I find that function?
Reply
#4

If you got this message only recently, think over what you changed / added it should somehow look like the example I posted above (it recalls itself)

You could also try to comment functions and recompile your code to see if the message still appears
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)