If I move or minimize my program's window it crashes?
Moderator: Coders of Rage
- dandymcgee
- ES Beta Backer
- Posts: 4709
- Joined: Tue Apr 29, 2008 3:24 pm
- Current Project: https://github.com/dbechrd/RicoTech
- Favorite Gaming Platforms: NES, Sega Genesis, PS2, PC
- Programming Language of Choice: C
- Location: San Francisco
- Contact:
If I move or minimize my program's window it crashes?
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.
Falco Girgis wrote:It is imperative that I can broadcast my narcissistic commit strings to the Twitter! Tweet Tweet, bitches!
- RyanPridgeon
- Chaos Rift Maniac
- Posts: 447
- Joined: Sun Sep 21, 2008 1:34 pm
- Current Project: "Triangle"
- Favorite Gaming Platforms: PC
- Programming Language of Choice: C/C++
- Location: UK
- Contact:
Re: If I move or minimize my program's window it crashes?
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.
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?
no its not that. its most likely code in the redraw function.
edit: debuggin it would probably help...
edit: debuggin it would probably help...
Some person, "I have a black belt in karate"
Dad, "Yea well I have a fan belt in street fighting"
Dad, "Yea well I have a fan belt in street fighting"
- dandymcgee
- ES Beta Backer
- Posts: 4709
- Joined: Tue Apr 29, 2008 3:24 pm
- Current Project: https://github.com/dbechrd/RicoTech
- Favorite Gaming Platforms: NES, Sega Genesis, PS2, PC
- Programming Language of Choice: C
- Location: San Francisco
- Contact:
Re: If I move or minimize my program's window it crashes?
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...
Falco Girgis wrote:It is imperative that I can broadcast my narcissistic commit strings to the Twitter! Tweet Tweet, bitches!