public static void OnThreadException(object sender, UnhandledExceptionEventArgs e) { System.Exception error = (System.Exception)e.ExceptionObject; unsafe { ErrorHandler eh = new ErrorHandler( ref error ); } }
public static void OnThreadException(object sender, System.Threading.ThreadExceptionEventArgs e) { System.Exception error = e.Exception; ErrorHandler eh = new ErrorHandler( ref error ); }