static public void LogException(Exception e) { string fileName = BugTracking.WriteExceptionRecord(e); System.Windows.Forms.MessageBox.Show(null, "A fatal error occured. Please send the following bug report to [email protected]:\n" + fileName, Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Error); }
//-------------------------------------------------------------------------------------------- static public void OnThreadException(object o, ThreadExceptionEventArgs e) { BugTracking.LogException(e.Exception); }