Stack problem
#2

For me, this kind of error has always meant I've done something wrong. For example, my plugin function calling did not clean up after itself properly (did not decrement the stack usage or something, I'm not sure on the terminology here).

For you, it could be that you are creating too massive arrays in functions. Or maybe you have a nested function that keeps allocating something on the stack. Please ****** for ******' very informative post on stack usage, it must be around somewhere.

Anyways, I'd get suspicious if I see things like:
1) Too large stack arrays
pawn Код:
stock SomeFunction()
{
    new array[10000];
    if(something) {
        new anotherarray[10000];
    }
}
2) Nested functions which all allocate on the stack
pawn Код:
stock SomeFunction()
{
    new array[10000];
    some_condition = false;
    if(some_condition != true)
    {
        SomeFunction();
    }
}
Reply


Messages In This Thread
Stack problem - by Marksman - 05.03.2014, 17:20
Re: Stack problem - by AndreT - 05.03.2014, 17:40
Re: Stack problem - by Marksman - 06.03.2014, 07:20
Re: Stack problem - by Vince - 06.03.2014, 07:36

Forum Jump:


Users browsing this thread: 1 Guest(s)