10-29-2011 03:00 PM
This is a follow-up to a previous problem I had where the debug version of an app works fine on the PB but the release version crashed. I have found the error code associated with the crash: 1023 - a stack overflow. Besides the obvious "why is this NOT happening in debug" question, I can't figure out the cause of this problem: it happens when the stack is 7 functions deep.
And it consistently happen at the same place. I switched my architecture to do resource loading between the frame animations (it is a game), which entails a very different call graph, but it stills happens at the same place.
The function called is 'ranchInit()' without any parameters. It is not a function that is overridden. And in fact it doesn't even get inside of the function. Just calling 'ranchInit' creates the error.
Some guidance, hint, help would be welcomed, this just doesn't make any sense to me.
10-29-2011 03:24 PM
10-29-2011 03:53 PM
Yeah, I do like to isolate the errors, but the nature of this one makes me think I'll need most of the classes of my project.
Nonetheless, I found a way around it: I broke down the function whose call was throwing the exception 1023. I made all the function variables class variables instead. I even put the inside of a for() loop in a separate function. That did the trick. The app can now pass over this section of the code.
However, I am not getting a stack underflow error a few more calls later... I am getting sick of this.