private void Send(object sender, EventArgs e) { DebugReport report = new DebugReport("Crash log generated by " + iProduct + " ver " + iVersion); report.Post(iTitle, iReportText); Close(); }
private void buttonReport_Click(object sender, RoutedEventArgs e) { // post data to Linn DebugReport report = new DebugReport("Crash log generated by " + iProduct + " ver " + iVersion); report.Post(iTitle, iReportText); Close(); }
public static void Send(string aCrashLog, string aProduct, string aVersion, string aTitle) { Thread t = new Thread(new ThreadStart(() => { UserLog.WriteLine("Sending crash log..."); DebugReport report = new DebugReport("Crash log generated by " + aProduct + " ver " + aVersion); report.Post(aTitle, aCrashLog); })); t.Start(); }
private void btnSendReport_Click(object sender, RoutedEventArgs e) { // post data to Linn try { DebugReport report = new DebugReport("Crash log generated by " + iProduct + " ver " + iVersion); report.Post(iProduct, txtErrorDetails.Text); } catch { } //failed to send debug report, nothing we can do... Close(); }
public void Dump(CrashLog aCrashLog) { // include some system details in report string reportText = aCrashLog.ToString(); // show crash form FormCrashLogDumper form = new FormCrashLogDumper(iTitle, iIcon, reportText); DialogResult result = form.ShowDialog(); if (result == DialogResult.OK) { // post data to Linn DebugReport report = new DebugReport("Crash log generated by " + iProduct + " ver " + iVersion); report.Post(iTitle, reportText); } }
public override void Send(DebugReport aReport) { byte[] crashData = iDevice.CrashData; if (crashData != null) { string response; bool failed = aReport.Post(string.Format("{0}_{1}", iDevice.Model.Replace(" ", ""), iDevice.Udn), string.Empty, crashData, iDevice.ElfFingerprint, out response); UserLog.WriteLine(response); if (!failed) { iDevice.ClearCrashData(); } } }
public void Dump(CrashLog aCrashLog) { // include some system details in report string reportText = aCrashLog.ToString(); DebugReport report = new DebugReport("Crash log generated by " + iProduct + " ver " + iVersion); /*iDelegate = new Delegate(report, iTitle, reportText); * UIAlertView alert = new UIAlertView(iTitle, "The application " + iTitle + " quit unexpectedly", iDelegate, * "Close", new string[] { "Report and Close" }); * alert.Show();*/ if (iAutoSend) { report.Post(iTitle, reportText); } }
public void Dump(CrashLog aCrashLog) { int result = AppKitFramework.NSRunCriticalAlertPanel("The application " + iTitle + " quit unexpectedly", "Mac OS X and other applications are not affected.\n\n" + "Click Report to send a report to Linn", "Report", "Ignore", null); // show crash form if (result == 1) { // post data to Linn DebugReport report = new DebugReport("Crash log generated by " + iProduct + " ver " + iVersion); report.Post(iTitle, aCrashLog.ToString()); } }