Reputation: 787
I'm not really sure how specific I can get. I've noticed this in multiple places in my app. I'm running an app in the Windows Phone 7 emulator and every so often it will just crash. When I run it in debug mode, it does not crash. I haven't been able to attach an Unhandled Exception handler the way I usually do.
AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(MyHandler);
Has anyone seen this before? Or at least know how I can attach an Unhandled Exception Handler for WP7? I'm pretty much out of ideas on how to track down what's causing this.
Upvotes: 2
Views: 1314
Reputation: 11492
Try this article to add error reporting capability to your app. It basically writes out an error log to your app's isolated storage when crashing and displays it when you next start your app.
Error Reporting on Windows Phone 7
Upvotes: 0
Reputation: 683
This usually happens also on Windows desktop applications, depending on the nature of the crash or how aggressive the corruption has occurred. I think you should divide and conquer, comment out pieces and test if the program crashes or remains running. You get the drill.
Upvotes: 1