diff options
| author | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2020-08-12 23:45:47 +0300 |
|---|---|---|
| committer | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2020-08-12 23:45:47 +0300 |
| commit | 30f5a25d16b65c267c2658861c50b50c39877bc4 (patch) | |
| tree | 19e1beed32b3d612c26f025724c5adf72039f9a0 /Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/App.xaml.cs | |
| parent | 9149538fdf00ab97647b36fed3282f2037da4b2d (diff) | |
| download | Tango-30f5a25d16b65c267c2658861c50b50c39877bc4.tar.gz Tango-30f5a25d16b65c267c2658861c50b50c39877bc4.zip | |
Implemented global exception trapper GetLastApplicationCrashFromWindows for PPC/FSE/MS.
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/App.xaml.cs')
| -rw-r--r-- | Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/App.xaml.cs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/App.xaml.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/App.xaml.cs index 2ea0ebd38..006b9a361 100644 --- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/App.xaml.cs +++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/App.xaml.cs @@ -88,6 +88,17 @@ namespace Tango.MachineStudio.UI ApplyEFCacheSettings(); WebRequest.DefaultWebProxy = null; + + GetLastApplicationCrashFromWindows(); + } + + private async void GetLastApplicationCrashFromWindows() + { + var logItem = await exceptionTrapper.GetLastApplicationCrashEventLog(); + if (logItem != null) + { + LogManager.Log(logItem); + } } private void ApplyEFCacheSettings() |
