Stack/heap size: estimated max. (error :l) - 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: Stack/heap size: estimated max. (error :l) (
/showthread.php?tid=101617)
Stack/heap size: estimated max. (error :l) -
ғαιιοцт - 11.10.2009
Код:
Stack/heap size: 16384 bytes; estimated max. usage=5878 cells (23512 bytes)
I get this when I compile
I guess this means that I want to use more of stack memory than available...
how can I fix this?
Re: Stack/heap size: estimated max. (error :l) - Zeex - 11.10.2009
Read
this and
this
Re: Stack/heap size: estimated max. (error :l) -
ғαιιοцт - 11.10.2009
thanks
I had to use #pragma dynamic
value
as solution, because I couldn't decrease the amount of stack memory I use
it's not high because I'm creating my strings with too many cells (I use just as many cells as necessary)
but I just have too many arrays
so.. this was the only solution
it worked now ^^ no stack warning any more
Re: Stack/heap size: estimated max. (error :l) -
UsaBoy91 - 11.10.2009
I had same problem , with this
stock strvalEx(const string[])
{
if(strlen(string) >= 50) return 0;
return strval
Ex(string);
}
Re: Stack/heap size: estimated max. (error :l) -
ғαιιοцт - 11.10.2009
Quote:
Originally Posted by Angel φ
I had same problem , with this
stock strvalEx(const string[])
{
if(strlen(string) >= 50) return 0;
return strvalEx(string);
}
|
well yea, that's because you created an unendless loop
Re: Stack/heap size: estimated max. (error :l) -
dice7 - 11.10.2009
use enums insted
Re: Stack/heap size: estimated max. (error :l) -
ғαιιοцт - 11.10.2009
Quote:
Originally Posted by dice7
use enums insted
|
they don't use stack memory?