Unhandled exceptions will always be fatal to a process?
Ok,
http://www.gotdotnet.com/team/changeinfo/Backwards1.1to2.0/default.aspx#00000097 states that in v2.0 "Applications that throw unhandled exceptions on threads other than the main thread (or ones that come into the runtime from the outside) will crash rather than continue running (potentially abnormally).".
So does this mean that invoking Crash will terminate my process. If so, does this mean invoking Thread.Abort will automatically crash/terminate a process?
| |
using System; using System.Threading;namespace ConsoleApplication1 { publicclass ConsoleCtrl { publicstaticvoid Main() { Thread t =new Thread(new ThreadStart(Crash)); t.IsBackground =true; t.Start(); while(true) Thread.Sleep(1000); } staticvoid Crash() { thrownew Exception(); } } }
|
not exactly, the firts is thing they will look for default debugger. is there's one in the registry.( refer to Don Box's Essential .Net vol 1) , i there's no default debuger that a usual exception unhandled messagebox let the use to quit or continue.