Stack/heap collision (insufficient stack size)
#6

maybe you have *uh I forgot what this is called, maybe someone can tell me*

Example you have something like this where the stack is built up in more than one function

pawn Code:
public StackStart()
{
    new array[1024];
    Stack1();
    return 1;
}

public Stack1()
{
    new array[1024];
    Stack2();
    return 1;
}

public Stack2()
{
    new array[512];
    Stack3();
    /*OPTIONAL: somewhere in this function could fail to execute and the stack wouldn't be cleared*/
    return 1;
}

public Stack3()
{
    new array[2048];
    //here in the final callback, it exceeds the stack
    return 1;
}
This is just a typical example, don't kill me >.<
Reply


Messages In This Thread
Stack/heap collision (insufficient stack size) - by Baboon - 07.11.2012, 14:04
Re: Stack/heap collision (insufficient stack size) - by Baboon - 07.11.2012, 15:07
Re: Stack/heap collision (insufficient stack size) - by Sinner - 07.11.2012, 15:27
Re: Stack/heap collision (insufficient stack size) - by Vince - 07.11.2012, 15:29
Re: Stack/heap collision (insufficient stack size) - by Baboon - 07.11.2012, 16:01
Re: Stack/heap collision (insufficient stack size) - by Kar - 14.11.2012, 21:02

Forum Jump:


Users browsing this thread: 1 Guest(s)