SA-MP Forums Archive
Tracing Recursion help - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Tracing Recursion help (/showthread.php?tid=259886)



Tracing Recursion help - toyota - 06.06.2011

Hi guys,

I am currently reading through ******' code optimisation topics, to help with optimising a 30k line game mode. One problem we are unable to get rid of is the stack memory error:

Stack/heap size: 16384 bytes; estimated max. usage: unknown, due to recursion

As I understand it, this is caused by a function calling itself and creating new variables each time. Looking through the code, I can't seem to see any functions directly calling themselves, but I assume the same would happen if it was indirectly calling itself, through another function?

My question is is there a way to trace this, as it is quite difficult to find in the 30k lines of code where it is happening.

Thanks.


Re: Tracing Recursion help - robanswe - 23.07.2011

I also got this problem so i'm bumping instead of creating an new thread.