From 5baedef34343452e3b3e17bcc5b4987e0521453e Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Wed, 22 Aug 2018 16:35:49 +0300 Subject: An attempt to catch global unhandled task exceptions.. --- Software/Visual_Studio/Tango.Logging/GlobalExceptionTrapper.cs | 1 + 1 file changed, 1 insertion(+) (limited to 'Software/Visual_Studio/Tango.Logging') 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 /// The instance containing the event data. private void TaskScheduler_UnobservedTaskException(object sender, UnobservedTaskExceptionEventArgs e) { + e.SetObserved(); OnApplicationCrash(e.Exception); } -- cgit v1.3.1