When does an application crash silently and when does it crash with a "send report" in Windows Mobile
I noticed that there are at least two kinds of crashes in Windows Mobile
- Silent Crash The application crash but there is no "send report" dialog prompted by the OS
- Crash with "send report" The application crash and there is a "send report" dialog prompted by the OS
As an addition, each of the crashes above sometimes cause the application to terminate unexpec开发者_运维技巧tedly and sometime do not (as far as I can recall).
When does each of them happen and perhaps what are some common scenarios/reasons they happen?
Edit:
When I am developing WM applications, sometimes my applications crash. So far I don't use any exceptions (not throwing nor catching).the "Crash with send report" is the easiest to answer. When an application exits because of an unhandled exception, you get the "We're sorry" dialog that offers to send a .kdmp file to Microsoft. This .kdmp file (also called a mini-dump) contains information about the state of the program at the time the unhandled exception was thrown.
A silent crash is probably an application that enters an error state it doesn't know how to handle and decides to exit. For example, the developer may have decided to catch a particular exception but didn't know how to recover from it, so he just tells the program to exit. I don't think there is going to be any 1 explanation for this type of error.
-PaulH
精彩评论