Stack corrupted! Heap underflow
#2

Quote:
Originally Posted by xxmitsu
View Post
My compile output is:
pawn Code:
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase

Header size:          21152 bytes
Code size:          1581964 bytes
Data size:          4137212 bytes
Stack/heap size:      16384 bytes; estimated max. usage=1253 cells (5012 bytes)
Total requirements: 5756712 bytes

Done.
================ READY ================
This, and only this is your problem. Let me quote ****** here:
Quote:

This means that the compiler has detected that you are using more stack/heap space than is available. A lot of important information is stored on the stack, such as who called the current function, so PAWN knows where to return to. If you use too much memory, because of the way information is allocated, you can overwrite the stack information, returning to a random point in code and almost certainly crashing. At the very least you will get corrupted data where it's been overwritten by other data. When people get this message the standard advice is to use "#pragma dynamic", which is a workaround, not a fix - I find it very odd that something the size of YSI can not generate this error but people's tiny scripts can, don't you?

https://sampforum.blast.hk/showthread.php?tid=55261
I suggest you read the whole topic and optimize your code where needed.
Reply


Messages In This Thread
Stack corrupted! Heap underflow - by xxmitsu - 07.01.2012, 10:26
Re: Stack corrupted! Heap underflow - by Vince - 07.01.2012, 12:24
Re: Stack corrupted! Heap underflow - by xxmitsu - 07.01.2012, 15:59

Forum Jump:


Users browsing this thread: 1 Guest(s)