Stack/heap size - 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 (
/showthread.php?tid=457508)
Stack/heap size -
thimo - 11.08.2013
Okay hello im getting this:
Code:
Header size: 9496 bytes
Code size: 2873604 bytes
Data size: 6112168 bytes
Stack/heap size: 16000000 bytes; estimated max. usage=15598 cells (62392 bytes)
Total requirements:24995268 bytes
For a gamemode of 50k lines. How to fix this? This is being shown in the compiler
Re: Stack/heap size -
Red_Dragon. - 11.08.2013
Use #pragma dynamic [VALUE HERE]
As far as I know, this value should be greater than the estimated maximum usage. I use a value of ten thousand in my script.
Re: Stack/heap size -
thimo - 11.08.2013
Well ****** im trying to figure out why the gamemode just keeps on calling onGameModeInit