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(); }
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()); }
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(); }