Windows Error Reporting from .NET Applications
I taught some classes recently for Vista app compat readiness.
One of the key things you need to ensure your app does for Vista is take advantage of Windows Error Reporting.
This means you MUST NOT just swallow all exceptions with your own exception handling.
A couple of quick tips around this.
1. If you want to rethrow an exception with the original stack trace do a blind throw like this
catch (Exception ex)
Note that we don'te append the exception variable onto the throw.
You can avoid any .NET dialog boxes and throw unhandled exceptions straight to WER by using this line of code.
.NET | Vista|Monday, 13 November 2006 19:37:32 UTC||