Silent Crash
- Posted by "Pete Stoner" <pete.stoner at BTConnect.com> Nov 06, 2003
- 566 views
Hi All, I see this has been discussed in the past, but I'm looking for any way around it.. I am writing a (win32) program that will be running on an unattended PC locked in a machine room, my program is interfacing with an external commercial program. If it has a problem it cannot handle it closes itself down and after a time a monitor program (which checks if it is running) restarts it and (courtesy of Thomas Parslows 'Interprocess Communications') presses the 'Start' button so my program can retry.. If (as happens sometimes) the commercial program is hanging and needs a windose reboot then my program forces that (using Wizmo) and with the monitor program in the Start folder everything tries again.. My potential problem is if my program crashes - since there seems to be no way of getting a 'Silent' crash without the console msg as far as windose (and my monitor program) is concerned the failed program is still running (although 'not responding'). If this happens then unless someone actually checks the PC (either physically or remotely using TightVNC) we will not know it isn't running. I wonder if there is some way I can check for this (my monitor prog could then send me email or force a reboot to recover). The ideal solutions would be a Crash_routine, but this is not available (and has been discussed to death in the past), or even just an option to turn off the console msg and allow the program to close completely. The only way I can see at present would be to use Matts Modified Interpreter which seems to have this crash_routine option, but I really wanted to give them an exe file and it appears I cannot bind using this.. Any ideas? Pete.