SA-MP Forums Archive
unknown, due to recursion - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: unknown, due to recursion (/showthread.php?tid=366116)



unknown, due to recursion - Mellnik - 05.08.2012

I compiled with -d3
And thats the output

Header size: 7128 bytes
Code size: 507396 bytes
Data size: 490136 bytes
Stack/heap size: 1024000 bytes; estimated max. usage: unknown, due to recursion
Total requirements: 2028660 bytes

What shoud I do to fix it?


Re: unknown, due to recursion - Ash. - 05.08.2012

It basically means the compiler doesn't know the maximum stack size because you're using a technique called "recursion". Recursion is where you call something from within itself. Example:

pawn Код:
stock MyFunction()
{
     return MyFunction();
}
That will crash the server, but it's just an example. In some cases it can utilized in a much more useful and productive way.


AW: unknown, due to recursion - Mellnik - 05.08.2012

Ah thanks I will change this might works