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, OnCBFinished, null);
16 static void OnCBFinished (object arg)
18 throw new Exception ("From OnCBFinished");
21 static void OnUnhandledException (object sender, UnhandledExceptionEventArgs e)