SA-MP Forums Archive
Stack/heap size: 1000 bytes; estimated max. usage: 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: Stack/heap size: 1000 bytes; estimated max. usage: unknown, due to recursion (/showthread.php?tid=483990)



Stack/heap size: 1000 bytes; estimated max. usage: unknown, due to recursion - erminpr0 - 28.12.2013

Hello, my script was working well, until I made some changes, like changin' all global variables from 'new' to 'static'.
And my gamemode can't even run now, It prints everithing I have in 'main' callback, load plugins/filter-scripts successfuly, but I can't connect to server (unknown gamemode)

I though maybe this is causing the problem:

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

Header size:          12888 bytes
Code size:           486320 bytes
Data size:         18048800 bytes
Stack/heap size:       1000 bytes; estimated max. usage: unknown, due to recursion
Total requirements:18549008 bytes
I have
pawn Код:
#pragma dynamic 250
at very top of my script.

So help me please, I'll appreciate Your help.


Re: Stack/heap size: 1000 bytes; estimated max. usage: unknown, due to recursion - xeeZ - 28.12.2013

Why did you set it to 250? Your computer doesn't have 4 KB of RAM? Also changing all global variables from new to static doesn't buy you anything (well, unless you're writing an include but you are apparently not).

As for the actual problem, try using the crashdetect plugin: https://sampforum.blast.hk/showthread.php?tid=262796 (download here).


Re: Stack/heap size: 1000 bytes; estimated max. usage: unknown, due to recursion - erminpr0 - 28.12.2013

Aw yes, thanks, and I removed ((pragma dynamic)), it works well now.


Re: Stack/heap size: 1000 bytes; estimated max. usage: unknown, due to recursion - Tween73 - 25.03.2015

2015 > #pragma dynamic 10000


Re: Stack/heap size: 1000 bytes; estimated max. usage: unknown, due to recursion - Pottus - 25.03.2015

This is not an issue at all you shouldn't really need to do anything until there is a problem and if there is a problem using #pragma dynamic is almost certainly not the answer.