need to detect a hanging application
Posted: Fri Jun 10, 2011 12:26 am
i use a small purebasic-tool to launch a game application. if that application crashes, it should relaunch the game.
but if the game hangs, or it has recently crashed but does not register as not-running because that stupid "app has crashed/stopped working" box is blocking it, IsProgram and ProgramRunning seem to be useless.
i found a registry key for vista/7 to disable that box, however it's certainly not a nice thing to do, and it does not work on xp.
i'd really appreciate if somebody could help me out here.
but if the game hangs, or it has recently crashed but does not register as not-running because that stupid "app has crashed/stopped working" box is blocking it, IsProgram and ProgramRunning seem to be useless.
i found a registry key for vista/7 to disable that box, however it's certainly not a nice thing to do, and it does not work on xp.
i'd really appreciate if somebody could help me out here.