Stack/heap
#10

The easiest way to fix it is to increase the stack size using #pragma dynamic, e.g.
pawn Код:
#pragma dynamic 12345 // or any other size large enough to get rid of warning message
// default value is 4096 IIRC
Also you can try using less memory for local variables, i.e. those which are declared inside functions (mainly strings and other arrays), by making them as small as possible. Everyone here would tell you follow this way as it's "right" to not occupy resources you won't even use. You can follow the optimization guide by ******, see links above. In most situations it helps. But if you really _need_ a lot of space for your locals, or you just have no time to optimize the whole script, or you're too lazy, follow the first approach - it always works (here I assume your computer/server have enough memory to hold a few kilobytes more).
Reply


Messages In This Thread
Stack/heap - by [TR]Oguzhan - 27.07.2010, 19:00
Re: Stack/heap - by [L3th4l] - 27.07.2010, 19:09
Re: Stack/heap - by TransformerOwl - 27.07.2010, 19:25
Re: Stack/heap - by Hiddos - 27.07.2010, 19:25
Re: Stack/heap - by [TR]Oguzhan - 28.07.2010, 06:35
Re: Stack/heap - by Simon - 28.07.2010, 07:03
Re: Stack/heap - by [TR]Oguzhan - 28.07.2010, 08:24
Re: Stack/heap - by ikey07 - 28.07.2010, 08:28
Re: Stack/heap - by Hiddos - 28.07.2010, 08:57
Re: Stack/heap - by Zeex - 28.07.2010, 09:08

Forum Jump:


Users browsing this thread: 1 Guest(s)