Skip to main content
GameDev.net gamedev.net
🔒 Locked

Exiting a program

Started by LamerGamer Jun 18, 2005 at 10:46 PM 1 replies 1k views
Original Post
LamerGamer
LamerGamer
I'm using Dev-CPP w/ Allegro lib. When running a program and trying to exit via clicking the "X" at the top right corner of the window, I get a warning, improper way to exit message. How do you get rid of this and make it where you may exit the program by clicking the x at the corner of the window?
smart_idiot
smart_idiot
set_close_button_callback

Note however that your function will get called from inside of another thread, so variables might contain invalid data if you try to read or write them while the main thread is doing the same. Try setting a volatile flag variable and then checking it every now and again in your main loop.
Chess is played by three people. Two people play the game; the third provides moral support for the pawns. The object of the game is to kill your opponent by flinging captured pieces at his head. Since the only piece that can be killed is a pawn, the two armies agree to meet in a pawn-infested area (or even a pawn shop) and kill as many pawns as possible in the crossfire. If the game goes on for an hour, one player may legally attempt to gouge out the other

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.