AppDomain.CurrentDomain.UnhandledException += OnUnhandledException;
ThreadPool.QueueUserWorkItem ((a) => {
throw new Exception ("From the threadpoool");
});
AppDomain.CurrentDomain.UnhandledException += OnUnhandledException;
ThreadPool.QueueUserWorkItem ((a) => {
throw new Exception ("From the threadpoool");
});