Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / July 2006

Tip: Looking for answers? Try searching our database.

Disable error reporting

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Lucvdv - 04 Jul 2006 11:20 GMT
At http://support.microsoft.com/kb/325075/en-us it is explained how error
reporting can be disabled for Office.

Can this also be done for the .Net framework?

Or even better, can the errors for which a report is generated be filtered
(some ignored, some added) and can the reports then be redirected to a
custom reporting site?

Signature

I hate working in dungeons.
They're dank, smelly, dark, and things keep jumping out and trying to kill you

William Sullivan - 05 Jul 2006 21:08 GMT
Yes.  You can control how your application acts when an unhandled exception
is thrown.  I believe that you should look into System.AppDomain's
UnhandledException event, and System.Windows.Forms.Application's
OnThreadException virtual method and ThreadException event.  I believe the
ThreadException event is the best bet, but I could be wrong.  By plugging
into one or more of these, you can control how your application acts when an
unhandled exception is thrown.  

If you want to set up your own error handling web service rather than using
MS' Quality website, you can check out MS' Shareware Starter Kit at
msdn.microsoft.com/vstudio/downloads/starterkits .  It includes the ability
to set up your own web server that accepts reports from your program.  Pretty
slick.

Just keep in mind that if you're developing a reusable library you shouldn't
be worrying about exception handling.  Just document what exceptions might be
thrown and let the callers handle them.

If you're developing an application, let the program crash.  An unhandled
exception is unhandled because you didn't know it would happen.  If you don't
know it was going to happen, you couldn't have determined what to do when it
does occur.  That's a bug.  Let it crash, gather the crash report data, and
fix the bug.  Don't just swallow the exception and hope that you can continue
without corrupting data or causing more problems.

> At http://support.microsoft.com/kb/325075/en-us it is explained how error
> reporting can be disabled for Office.
[quoted text clipped - 4 lines]
> (some ignored, some added) and can the reports then be redirected to a
> custom reporting site?

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.