diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-08-22 16:35:49 +0300 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-08-22 16:35:49 +0300 |
| commit | 5baedef34343452e3b3e17bcc5b4987e0521453e (patch) | |
| tree | 0726babe8730520e4f01f768d25000989187a61b /Software/Visual_Studio | |
| parent | 86339c9b8e383b92e183ee443c5bfbebd05808e7 (diff) | |
| download | Tango-5baedef34343452e3b3e17bcc5b4987e0521453e.tar.gz Tango-5baedef34343452e3b3e17bcc5b4987e0521453e.zip | |
An attempt to catch global unhandled task exceptions..
Diffstat (limited to 'Software/Visual_Studio')
| -rw-r--r-- | Software/Visual_Studio/Tango.Logging/GlobalExceptionTrapper.cs | 1 |
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); } |
