My program sometimes can't exit normally

C

chris

When click X or other exit entry, OS will ask me to report error to MS,
then i use windbg to debug, it report:Unknown exception - code c0020001
(first chance)

Does anybody know what is the problem?
 
B

Bruno van Dooren [MVP VC++]

When click X or other exit entry, OS will ask me to report error to MS,
then i use windbg to debug, it report:Unknown exception - code c0020001
(first chance)

Without more information, The logical assumption is that your app does
something illegal when it closes.
Does it also do this if you run it in the debugger?
If that is the case, then your program should break at the place where the
exception happens.

Have you tried setting breakpoints in your shutdown sequence and stepping
through it one line at the time?



--

Kind regards,
Bruno van Dooren
(e-mail address removed)
Remove only "_nos_pam"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top