2 using System
.Threading
;
7 AppDomain
.CurrentDomain
.UnhandledException
+= OnUnhandledException
;
8 WaitCallback wcb
= new WaitCallback ((a
) => {
9 throw new Exception ("From the threadpoool");
11 wcb
.BeginInvoke (wcb
, null, null);
16 static void OnUnhandledException (object sender
, UnhandledExceptionEventArgs e
)