We are trying to implement Windows Error Reporting from within our VB.Net
application. Basically we want to replace the standard unhandled exception
message we use with the Windows Error Reporting message. This will provide
our users the ability to send the crash report to Microsoft, which in turn
will allow us to get it.
We did a search for Visual Studio help to see what that might turn up and
came across the “ReportFault” function. Help says that the “ReportFault
function allows an application that performs its own exception handling to
report faults to Microsoft.” Unfortunately, there were no examples of just
how to use the function in VB 2005.
Further searching the web for ReportFault and Microsoft turned up an example
on the function’s use. However the example was for VB6. When we created a
project using VB6 with the sample code, the sample project worked. The VB6
application called the Windows Error Reporting message. However, when we
converted the code over to VB 2005, it no longer worked. We tried making
modifications to the code, and removed all build errors from it. However the
code failed to call the Windows Error Reporting message as the VB6 version
did.
Does anyone know how to trigger the Windows Error Reporting message box when
an exception is unhandled in VB 2005?
The sample VB6 code that I made reference to above can be found at:
http://www.mentalis.org/apilist/ReportFault.shtml# (See the example link at
the bottom of the page)
Any assistance with this matter would be greatly appreciated.
Kindest regards,
Josh