2 using System
.Threading
;
7 AppDomain
.CurrentDomain
.UnhandledException
+= OnUnhandledException
;
8 ThreadPool
.QueueUserWorkItem ((a
) => {
9 throw new Exception ("From the threadpoool");
12 // Should not finish, OnUnhandledException exit path is expected to be executed
18 static void OnUnhandledException (object sender
, UnhandledExceptionEventArgs e
)