Click here to Skip to main content
15,909,737 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: .Net Sockets Pin
Dave Compton12-Sep-03 4:06
Dave Compton12-Sep-03 4:06 
Generalmulti-user project design Pin
User 814711-Sep-03 5:35
User 814711-Sep-03 5:35 
GeneralRe: multi-user project design Pin
Michael P Butler11-Sep-03 5:49
Michael P Butler11-Sep-03 5:49 
QuestionIMessage Interface in Remoting? Pin
0siris11-Sep-03 3:20
0siris11-Sep-03 3:20 
GeneralStandardPrinter Pin
gecko2310-Sep-03 3:13
gecko2310-Sep-03 3:13 
GeneralCatching exception when starting exe from network drive Pin
the-unforgiven9-Sep-03 9:36
the-unforgiven9-Sep-03 9:36 
GeneralRe: Catching exception when starting exe from network drive Pin
0siris11-Sep-03 4:45
0siris11-Sep-03 4:45 
GeneralRe: Catching exception when starting exe from network drive Pin
Michael D Bray18-Sep-03 4:28
Michael D Bray18-Sep-03 4:28 
Generally (at least in my experience) putting a try / catch around Application.Run(...) does absolutely nothing. I believe this is because exceptions only bubble up in their own thread, and Application.Run starts a new thread and message loop for the form you are creating, so no exceptions will be caught.

If you want to receive notification of the exception (on a global basis), you can hook to the AppDomain.CurrentDomain.UnhandledException event from within Main() before Application.Run(...), but you won't be able to stop the exception from terminating the program if the Framework considers the exception serious enough to do so.

In answering the original question, I don't believe there is any way to prevent the error (or catch it in such a way to allow the program to continue running) without altering the Security Configuration. If it were, there wouldn't be any security. What you are asking is something like asking the guard at a high-security building "I don't have credentials, but please let me in anyway."

-mike bray
GeneralComplex data binding and ListView column sorting problem Pin
zinzinlabine7-Sep-03 6:18
zinzinlabine7-Sep-03 6:18 
GeneralReflection question Pin
Gluber20026-Sep-03 15:54
Gluber20026-Sep-03 15:54 
GeneralRe: Reflection question Pin
leppie7-Sep-03 4:08
leppie7-Sep-03 4:08 
GeneralSuspendLayout() doen't work on richTextBox Pin
eranas3-Sep-03 21:07
eranas3-Sep-03 21:07 
GeneralRe: SuspendLayout() doen't work on richTextBox Pin
leppie7-Sep-03 4:14
leppie7-Sep-03 4:14 
GeneralExposing properties (COM interop) Pin
Elbie2-Sep-03 5:31
Elbie2-Sep-03 5:31 
GeneralOverriding Paint message in TextEditBase or RichEditBox Pin
NormDroid2-Sep-03 4:46
professionalNormDroid2-Sep-03 4:46 
GeneralIPicture to System.Drawing.Image Pin
Corinna John2-Sep-03 3:37
Corinna John2-Sep-03 3:37 
GeneralTimezones and Date formatting Pin
AJB...1-Sep-03 10:05
AJB...1-Sep-03 10:05 
GeneralRe: Custom Collection based on ... Pin
dog_spawn4-Sep-03 16:58
dog_spawn4-Sep-03 16:58 
General.net DataSet Relations Lost.... Pin
mgaerber27-Aug-03 4:44
mgaerber27-Aug-03 4:44 
Generallost? Pin
dog_spawn4-Sep-03 17:02
dog_spawn4-Sep-03 17:02 
GeneralRe: lost? Pin
mgaerber9-Sep-03 20:12
mgaerber9-Sep-03 20:12 
GeneralVARIANT* in COM Interop Pin
Elbie27-Aug-03 0:48
Elbie27-Aug-03 0:48 
GeneralRe: VARIANT* in COM Interop Pin
Elbie27-Aug-03 5:08
Elbie27-Aug-03 5:08 
GeneralRe: VARIANT* in COM Interop Pin
igor19603-Sep-03 10:28
igor19603-Sep-03 10:28 
General.NET component in MFC applicaiton Pin
Member 45183026-Aug-03 20:23
Member 45183026-Aug-03 20:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.