Waves
12-01-2010, 02:02 PM
Hi all,
I've got a strange crash in my program. I am getting access violation exceptions that (in the VS debugger) show up on a glPopAttrib() call, which allways follows a glPushAttrib(GL_ALL_ATTRIB_BITS). The call stack appears to be following a call to glFlush().
I've just gone through my code and wrapped any calls to any pointers with assert(obj != NULL), and the few deletions I do are followed by ptr = NULL. I really am not sure how I am accessing out of bounds memory.
The crash only happens when the system is left running for 10-20 minutes.
Does anyone have any ideas. Sorry if the explaination is poor.
Jon
I've got a strange crash in my program. I am getting access violation exceptions that (in the VS debugger) show up on a glPopAttrib() call, which allways follows a glPushAttrib(GL_ALL_ATTRIB_BITS). The call stack appears to be following a call to glFlush().
I've just gone through my code and wrapped any calls to any pointers with assert(obj != NULL), and the few deletions I do are followed by ptr = NULL. I really am not sure how I am accessing out of bounds memory.
The crash only happens when the system is left running for 10-20 minutes.
Does anyone have any ideas. Sorry if the explaination is poor.
Jon