protected override void OnLoad(EventArgs e) { var str = ExceptionForm.ToMessageAndCompleteStacktrace(the_exception); if (!string.IsNullOrEmpty(extra_info)) { str = "DEBUG STRING = " + extra_info + "\r\n\r\n" + str; } textBox1.Text = str; StreamWriter streamWriter = File.AppendText(debugFile); streamWriter.WriteLine(); streamWriter.WriteLine("--------------------------------------------------"); streamWriter.WriteLine("Exception Text: "); streamWriter.WriteLine("--------------------------------------------------"); streamWriter.WriteLine(); streamWriter.WriteLine(str); streamWriter.Close(); base.OnLoad(e); }
public static void ShowExceptionForm(Exception e) { ExceptionForm.ShowExceptionForm(e, null); }