Windows Error Reporting

G

Guest

Does anyone know how to use ReportFault or the new WER API from within .net.

I know I can use pinvoke but I am wondering if there is support already for
it in the .net framework. It seems like that should be included if it is
not. But I cannot find it if it is.

Also, with my .net app it will currently not send error reports. My
understanding of WER is that if you have an unhandled exception it should
automatically prompt the user to send the report unless you have a global
handler that is catching the exception. I do not, but I get the standard
..net exception report screen and no error reporting. I am guessing this
means that the .net Framework has a global handler that is catching my
unhandled exception? Thus my need to manually call the WER api to report the
error so that I can see them on the winqual site.
 
G

Guest

I found the following post that was helpful for .NET 2.0 apps:
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=528848&SiteID=1

Here is an quote from that post:
"If your application is a Windows Forms application, WinForms has a catch
handler in its event loop that pops up a dialog and prevents the automatic
error reporting from kicking in. To disable that, call
Application.SetUnhandledExceptionMode(UnhandledExceptionMode.ThrowException)
before your call to Application.Run."

I tested it and it does work for a .NET 2.0 application.

However, my application is a .net 1.1 application. Any ideas on how to get
this to work with .NET 1.1?

Thanks.
 

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