logger: add exception type to crash dump

This commit is contained in:
Hylke Bons 2012-10-22 10:03:59 +01:00
parent 1291780cc8
commit 1530c9a9af
2 changed files with 50 additions and 53 deletions

View file

@ -65,7 +65,7 @@ namespace SparkleLib {
"SparkleShare version: " + SparkleLib.SparkleBackend.Version + n +
"Operating system: " + SparkleLib.SparkleBackend.Platform + " " + Environment.OSVersion + n;
crash_report += n + e.Message + n + e.StackTrace + n;
crash_report += e.GetType () + ": " + e.Message + n + e.StackTrace + n;
if (e.InnerException != null)
crash_report += n + e.InnerException.Message + n + e.InnerException.StackTrace + n;

View file

@ -368,8 +368,7 @@ namespace SparkleShare {
public void UpdateContent (string html)
{
Thread thread = new Thread (
new ThreadStart (delegate {
new Thread (() => {
using (var a = new NSAutoreleasePool ())
{
string pixmaps_path = "file://" + Path.Combine (NSBundle.MainBundle.ResourcePath, "Pixmaps");
@ -420,10 +419,8 @@ namespace SparkleShare {
this.progress_indicator.Hidden = true;
});
}
}
));
thread.Start ();
}).Start ();
}