|
-
Jul 9th, 2012, 02:45 PM
#1
Thread Starter
Junior Member
How to disable .NET error messages (just terminate an app)
Hello,
Is there a way to disable .NET Framework "Unhandled Exception has occurred in your application. If you click Continue........." messages? In case the app crashes, I just want it to close without any messages.
-
Jul 9th, 2012, 02:48 PM
#2
Re: How to disable .NET error messages (just terminate an app)
use a try, catch block + handle the exception. you can close the app in the catch statement
- Coding Examples:
- Features:
- Online Games:
- Compiled Games:
-
Jul 9th, 2012, 03:24 PM
#3
Thread Starter
Junior Member
Re: How to disable .NET error messages (just terminate an app)
 Originally Posted by .paul.
use a try, catch block + handle the exception. you can close the app in the catch statement
That's what I tried to do actually... I am trying to do Application.Restart
and then the above .net error shows up with an "Access Denied" message...
-
Jul 9th, 2012, 04:27 PM
#4
Re: How to disable .NET error messages (just terminate an app)
The following allows you (if you care too) not show a dialog and also not to crash upon the current exception unless that one generates another unhandled exception. I do not advise this but if that is your choice so be it.
http://code.msdn.microsoft.com/Deali...ndled-9b933818
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|