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

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.
Reply
#2

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).
Reply
#3

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

2015 > #pragma dynamic 10000
Reply
#5

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.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)