Program ends abruptly even in debugger - how did that happen?

Posted by Mick on Stack Overflow See other posts from Stack Overflow or by Mick
Published on 2010-04-12T11:12:44Z Indexed on 2010/04/12 11:13 UTC
Read the original article Hit count: 284

Filed under:
|

I am trying to debug a program that unexpectedly shuts down. When I say "shuts down, I mean one moment I am seeing all the windows being displayed, each of which is showing all the right data,then suddenly all the windows disappear. The is no messagebox reporting anything wrong. So I tried running the program in the debugger hoping that it would somehow trap whatever was causing the program to abort, but even within the debugger the program simply ends abruptly. The last line in the debugger is:

The program '[5500] test.exe: Native' has exited with code 0 (0x0).

My program which is extremely large and extremely old has a lot of self diagnostics. My suspicion is that perhaps a self test has failed and maybe I just called "exit()", forgetting to pop up a dialog explaining why.

My question now is, how can I find out from which point in the code, my program quit?

© Stack Overflow or respective owner

Related posts about visual-studio-2008

Related posts about c++