What is this? Stack overflow/pragma
#1

Hello,
I have this warning in the compiler but I don't know what this is exactly?

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

Header size: 17276 bytes
Code size: 741544 bytes
Data size: 20377676 bytes
Stack/heap size: 16384 bytes; estimated max. usage: unknown, due to recursion
Total requirements:21152880 bytes


I searched for a solution but the only is #pragma dynamic
But I don't know what thing is this and how work.
I think that this pragma is only hiding the warning and I don't want it.
Can anyone give me a tutorial about stack overflow or that thing?
Thanks and sorry for my bad english.
Reply
#2

I'm not 100% but I'll try to help since no one's tried yet.

I think it may be because of the size of your .amx. Have you used massive length strings (e.g. 255 when it's not needed) and careless with your numbers and your style of coding?

I think when it reaches a certain size, it compile with those lines..
Reply
#3

Check this https://sampforum.blast.hk/showthread.php?tid=480439
Reply
#4

iZN:
Very useful the information, thanks.
PrivatioBoni:
I don't understand the 255, I used more of 255 to show large custom messages in a dialog.
I can understand this mistake:
new str[255];
format(str, sizeof(str), "You have %s of money", GetPlayerMoney(playerid));
SendClientMessage(playerid, -1, str);
Can you explain me?
I think that my larger variable is this:
#define MAX_RACES 70
#define MAX_CHECKPOINTS 400
Float:RaceCheckPoint[MAX_RACES][MAX_CHECKPOINTS][3]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)