static void Main() { Application.ThreadException += (sender, args) => SendReport(args.Exception); AppDomain.CurrentDomain.UnhandledException += (sender, args) => { SendReport((Exception)args.ExceptionObject); }; Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); _reportCrash = new ReportCrash("Email where you want to receive crash reports") { Silent = true, ShowScreenshotTab = true, IncludeScreenshot = false, #region Optional Configuration WebProxy = new WebProxy("Web proxy address, if needed"), AnalyzeWithDoctorDump = true, DoctorDumpSettings = new DoctorDumpSettings { ApplicationID = new Guid("Application ID you received from DrDump.com"), OpenReportInBrowser = true } #endregion }; _reportCrash.RetryFailedReports(); Application.Run(new FormMain()); }
// Put up dialog to send crash report. private static void SendCrashReport(Exception exception) { if (!crashReported) { crashReported = true; // Only report crash one time. Further ones are likely to be annoying and useless. var reportCrash = new ReportCrash { FromEmail = "*****@*****.**", ToEmail = "*****@*****.**", SmtpHost = "mail.purple-pen.org", Port = 587, UserName = "******", Password = "******", EnableSSL = false, TextIntro = MiscText.CrashIntro, TextEmail = MiscText.CrashEmail, TextMessage = MiscText.CrashMessage, TextSend = MiscText.CrashSend, TextSave = MiscText.CrashSave, TextCancel = MiscText.CrashCancel }; reportCrash.Send(exception); } }
static void Main() { Application.ThreadException += (sender, args) => { GlobalThreadExceptionHandler(sender, args); SendReport(args.Exception); }; AppDomain.CurrentDomain.UnhandledException += (sender, args) => { GlobalUnhandledExceptionHandler(sender, args); SendReport((Exception)args.ExceptionObject); }; Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); _reportCrash = new ReportCrash("*****@*****.**") { Silent = true, CaptureScreen = true, IncludeScreenshot = true, #region Optional Configuration // WebProxy = new WebProxy("Web proxy address, if needed"), //AnalyzeWithDoctorDump = true, //DoctorDumpSettings = new DoctorDumpSettings //{ // ApplicationID = new Guid("AzureKinectRecorder"), // OpenReportInBrowser = true //} #endregion }; //_reportCrash.RetryFailedReports(); Application.Run(new Control()); }
private static void initCrashReporter() { AppDomain.CurrentDomain.UnhandledException += (sender, args) => { SendReport((Exception)args.ExceptionObject); }; byte[] data = Convert.FromBase64String("enFhYy56cWh1K3puZ3B1M2ZieWlyZXBlbmZ1ZXJjYmVnQHR6bnZ5LnBieg=="); string decodedString = Encoding.UTF8.GetString(data); byte[] data2 = Convert.FromBase64String("cjBwOW9vcHEtNzVzcC00cHJxLW8yNjktbnIzMTQ5MDc0OTQy"); string decodedString2 = Encoding.UTF8.GetString(data2); _reportCrash = new ReportCrash(String.Join("", decodedString.Select(x => char.IsLetter(x) ? (x >= 65 && x <= 77) || (x >= 97 && x <= 109) ? (char)(x + 13) : (char)(x - 13) : x))) { Silent = true, ShowScreenshotTab = true, IncludeScreenshot = false, #region Optional Configuration AnalyzeWithDoctorDump = true, DoctorDumpSettings = new DoctorDumpSettings { ApplicationID = new Guid(String.Join("", decodedString2.Select(x => char.IsLetter(x) ? (x >= 65 && x <= 77) || (x >= 97 && x <= 109) ? (char)(x + 13) : (char)(x - 13) : x))), OpenReportInBrowser = true } #endregion }; _reportCrash.RetryFailedReports(); }
public static void ReportCrash(Exception exception) { var reportCrash = new ReportCrash { ToEmail = "*****@*****.**" }; reportCrash.Send(exception); }
private static void ReportCrash(Exception exception) { ReportCrash reportCrash = new ReportCrash { ToEmail = "*****@*****.**" }; reportCrash.Send(exception); }
/// <summary> /// Prompts the user with a crash report and submits the report to an email address /// </summary> /// <param name="exception"></param> public static void ReportCrash(Exception exception) { var reportCrash = new ReportCrash { ToEmail = "*****@*****.**" //Prev: [email protected] }; reportCrash.Send(exception); }
public static void SendReport(Exception exception, string developerMessage = "") { var reportCrash = new ReportCrash("*****@*****.**") { DeveloperMessage = developerMessage }; reportCrash.Send(exception); }
/// <summary> /// Prompts the user with a crash report and submits the report to an email address /// </summary> /// <param name="exception"></param> public static void ReportCrash(Exception exception) { var reportCrash = new ReportCrash { ToEmail = "*****@*****.**" }; reportCrash.Send(exception); }
private void ApplicationThreadException(object sender, ThreadExceptionEventArgs e) { var reportCrash = new ReportCrash { ToEmail = "*****@*****.**" }; reportCrash.Send(e.Exception); }
public static void ReportCrash(Exception exception, string developerMessage = "") { var reportCrash = new ReportCrash("Email where you want to receive crash reports.") { DeveloperMessage = developerMessage }; reportCrash.Send(exception); }
public static void SendReport(Exception exception, string developerMessage = "") { var reportCrash = new ReportCrash("*****@*****.**") { DeveloperMessage = developerMessage }; reportCrash.Send(exception); }
private static void ReportCrash(Exception exception) { var reportCrash = new ReportCrash { ToEmail = "*****@*****.**" }; reportCrash.Send(exception); }
private static void ReportCrash(Exception exception) { var reportCrash = new ReportCrash { ToEmail = "*****@*****.**" }; reportCrash.Send(exception); }
public static void ReportCrashToSingle(Exception err, string targetname) { ReportCrash reportCrash = new ReportCrash { ToEmail = emails.FirstOrDefault(a => a.DisplayName == targetname).Address }; reportCrash.Send(err); }
public static void SendReport(Exception exception, string developerMessage = "", bool silent = false) { var reportCrash = new ReportCrash("Email where you want to receive crash reports.") { DeveloperMessage = developerMessage, Silent = silent }; reportCrash.Send(exception); }
private static void SendReport(Exception exception, string developerMessage = "", bool silent = false) { var reportCrash = new ReportCrash("*****@*****.**") { DeveloperMessage = developerMessage }; reportCrash.Silent = silent; reportCrash.Send(exception); }
public static void SendReport(Exception exception, string developerMessage = "", bool silent = true) { var reportCrash = new ReportCrash("*****@*****.**") { DeveloperMessage = developerMessage }; reportCrash.Silent = silent; reportCrash.Send(exception); }
public static void ReportCrashToAll(Exception err) { ReportCrash reportCrash = new ReportCrash(null); foreach (MailAddress email in emails) { reportCrash.ToEmail = email.Address; reportCrash.Send(err); } }
public static void SendReport(Exception exception, string developerMessage = "", bool silent = false) { var reportCrash = new ReportCrash("*****@*****.**") { DeveloperMessage = "llcom错误报告" }; reportCrash.Silent = silent; reportCrash.CaptureScreen = true; reportCrash.Send(exception); }
public static void ReportCrash(Exception exception, string developerMessage = "") { var reportCrash = new ReportCrash("*****@*****.**") { IncludeScreenshot = true, CaptureScreen = true, DeveloperMessage = developerMessage }; reportCrash.Send(exception); }
internal static void ReportCrash(Exception exception) { ReportCrash reportCrash = new ReportCrash("*****@*****.**"); reportCrash.CaptureScreen = true; reportCrash.IncludeScreenshot = true; reportCrash.DoctorDumpSettings = new DoctorDumpSettings { ApplicationID = new Guid("87af7b0b-2407-4944-b572-caee9d031325"), }; reportCrash.Send(exception); }
internal static void ReportCrash(Exception exception) { ReportCrash reportCrash = new ReportCrash("*****@*****.**"); reportCrash.CaptureScreen = true; reportCrash.IncludeScreenshot = true; reportCrash.DoctorDumpSettings = new DoctorDumpSettings { ApplicationID = new Guid("8e1fd37f-a3c3-421b-b959-c6d03e98a38c"), }; reportCrash.Send(exception); }
protected override void OnStartup(StartupEventArgs e) { base.OnStartup(e); AppDomain.CurrentDomain.UnhandledException += CurrentDomainOnUnhandledException; Application.Current.DispatcherUnhandledException += DispatcherOnUnhandledException; TaskScheduler.UnobservedTaskException += TaskSchedulerOnUnobservedTaskException; _reportCrash = new ReportCrash("Email where you want to receive crash reports") { DeveloperMessage = "Retry attempt", Silent = true }; _reportCrash.RetryFailedReports(); }
public static void SendReport(Exception exception, string developerMessage = "") { var reportCrash = new ReportCrash("*****@*****.**") { DeveloperMessage = developerMessage }; reportCrash.DoctorDumpSettings = new DoctorDumpSettings { ApplicationID = new Guid("a85ec548-daf5-483b-bbad-1f231e156955"), }; reportCrash.Send(exception); }
public static void ReportCrash(Exception exception, string developerMessage = "") { if (exception.GetType().Equals(new FileLoadException().GetType())) { ATGateUtil.HandleDotNetException(); } else { var reportCrash = new ReportCrash(Properties.Resources.crash_report_email); reportCrash.Send(exception); Environment.Exit(0); } }
public static void SendCrashReport(this Exception exception, string developperMessage = "") { var reportCrash = new ReportCrash { DeveloperMessage = developperMessage, ToEmail = "*****@*****.**", DoctorDumpSettings = new DoctorDumpSettings() { ApplicationID = new Guid("2d91c39b-99f9-4eab-bd9f-a7730f2289d2") } }; reportCrash.Send(exception); }
public static void SendCrashReport(Exception exception, string developerMessage = "") { var reportCrash = new ReportCrash("Email where you want to receive crash reports.") { DeveloperMessage = developerMessage, DoctorDumpSettings = new DoctorDumpSettings { ApplicationID = new Guid("Application ID you received from DrDump.com"), OpenReportInBrowser = true } }; reportCrash.Send(exception); }
/// <summary> /// Report an exception /// </summary> public static void SendCrashReport(Exception exception) { var reportCrash = new ReportCrash("*****@*****.**") { FromEmail = "*****@*****.**", SmtpHost = "smtp.gmail.com", Port = 587, UserName = "******", Password = "******", EnableSSL = true, }; reportCrash.Send(exception); }
public static void SendReport(Exception exception, string developerMessage = "", bool silent = true) { MessageBox.Show("恭喜你触发了一个BUG!\r\n" + "你获得了去GitHub反馈bug的机会!\r\n" + $"报错信息:{exception.Message}\r\n" + "请在关闭本对话框后耐心等待一会儿,以便自动上传错误信息"); var reportCrash = new ReportCrash("*****@*****.**") { DeveloperMessage = developerMessage }; reportCrash.Silent = silent; reportCrash.CaptureScreen = true; reportCrash.Send(exception); }