Page 1 of 1
If I move or minimize my program's window it crashes?
Posted: Tue Dec 08, 2009 12:25 pm
by dandymcgee
I have an OpenGL / SDL program I wrote that closes itself when you drag the window for more than half a second or minimize the window. Any ideas why this would happen? There are a ton of things being drawn and updated per second, but I don't believe there are any memory leaks.
Re: If I move or minimize my program's window it crashes?
Posted: Tue Dec 08, 2009 1:07 pm
by RyanPridgeon
Well often when you move the window, it freezes the program.
This can fuck up your game logic severely if you're using difference in time to control the game. Just a thought.
Re: If I move or minimize my program's window it crashes?
Posted: Tue Dec 08, 2009 1:10 pm
by avansc
no its not that. its most likely code in the redraw function.
edit: debuggin it would probably help...
Re: If I move or minimize my program's window it crashes?
Posted: Wed Dec 09, 2009 11:45 am
by dandymcgee
I'm pretty sure it's time. It segfaults at a vector.erase() call, which is called from within a loop governed by ticks. I guess for now I'll just not move or minimize the window...