aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Logging
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2018-08-22 16:35:49 +0300
committerRoy Ben-Shabat <Roy@Twine-s.com>2018-08-22 16:35:49 +0300
commit5baedef34343452e3b3e17bcc5b4987e0521453e (patch)
tree0726babe8730520e4f01f768d25000989187a61b /Software/Visual_Studio/Tango.Logging
parent86339c9b8e383b92e183ee443c5bfbebd05808e7 (diff)
downloadTango-5baedef34343452e3b3e17bcc5b4987e0521453e.tar.gz
Tango-5baedef34343452e3b3e17bcc5b4987e0521453e.zip
An attempt to catch global unhandled task exceptions..
Diffstat (limited to 'Software/Visual_Studio/Tango.Logging')
-rw-r--r--Software/Visual_Studio/Tango.Logging/GlobalExceptionTrapper.cs1
1 files changed, 1 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.Logging/GlobalExceptionTrapper.cs b/Software/Visual_Studio/Tango.Logging/GlobalExceptionTrapper.cs
index 649677396..5b917992e 100644
--- a/Software/Visual_Studio/Tango.Logging/GlobalExceptionTrapper.cs
+++ b/Software/Visual_Studio/Tango.Logging/GlobalExceptionTrapper.cs
@@ -41,6 +41,7 @@ namespace Tango.Logging
/// <param name="e">The <see cref="UnobservedTaskExceptionEventArgs"/> instance containing the event data.</param>
private void TaskScheduler_UnobservedTaskException(object sender, UnobservedTaskExceptionEventArgs e)
{
+ e.SetObserved();
OnApplicationCrash(e.Exception);
}