handle crashes

Is there a way to handle application crashes before windows close the
program?
I am in the stuation that for some reason (I can't understand the reason)
sometime my application is closed by windows (showing me the classical
crash dialog).
But this is no useful for me to find the reas problem.
Any suggestion?

thanks

wishmaster@sephiroth.it wrote:

Is there a way to handle application crashes before windows close the
program?
I am in the stuation that for some reason (I can't understand the reason)
sometime my application is closed by windows (showing me the classical
crash dialog).
But this is no useful for me to find the reas problem.
Any suggestion?

For the crashes I have had in the wx library I have never been able
to get anything useful on Windows. What I do is run it on Linux
where I made a debug rpm, and then use gdb.

Roger

I met with those crash dialogs too. Most of the times there was something very wrong with my code, maybe an initialization issue.
Suggestions:
1. launch the script from a console, it might leave some tracebacks
2. do "code a little, test a little" type of programming, this way you might just get lucky enough to pinpoint the problem.
3. remember how you use the application, you should be able to "trace" the execution of your code, inspect the code. If you get a crash dialog try to do it again, follow the same steps as the first time. If the crash dialog appears as expected chances are that you can zoom in on the problem (follow the code).
4. log your actions, this is something I should start doing too :smiley: (instead of prints use the logging module)

ยทยทยท

On Tue, 20 Apr 2004 22:56:08 -0700 (PDT), <wishmaster@sephiroth.it> wrote:

Is there a way to handle application crashes before windows close the
program?
I am in the stuation that for some reason (I can't understand the reason)
sometime my application is closed by windows (showing me the classical
crash dialog).
But this is no useful for me to find the reas problem.
Any suggestion?

thanks

--
Peter Damoc
Hacker Wannabe
http://www.sigmacore.net/about.html