aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/MainWindow.xaml.cs
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2018-10-21 12:01:25 +0300
committerRoy Ben-Shabat <Roy@Twine-s.com>2018-10-21 12:01:25 +0300
commit91082afaed2e859e42bad9b06739075689e71b3e (patch)
tree481ca7875d76d36f8372657826ce487fb795cca3 /Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/MainWindow.xaml.cs
parent0c0812bf93ab73acdadf5301098898d63577d903 (diff)
downloadTango-91082afaed2e859e42bad9b06739075689e71b3e.tar.gz
Tango-91082afaed2e859e42bad9b06739075689e71b3e.zip
Machine Studio v3.5.52
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/MainWindow.xaml.cs')
-rw-r--r--Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/MainWindow.xaml.cs9
1 files changed, 8 insertions, 1 deletions
diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/MainWindow.xaml.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/MainWindow.xaml.cs
index 9989aa091..feb1e41b3 100644
--- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/MainWindow.xaml.cs
+++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/MainWindow.xaml.cs
@@ -41,7 +41,14 @@ namespace Tango.MachineStudio.UI
{
InitializeComponent();
- _is_testing = TestHelper.IsRunningUnderTestStudio();
+ try
+ {
+ _is_testing = TestHelper.IsRunningUnderTestStudio();
+ }
+ catch (Exception ex)
+ {
+ LogManager.Log(ex, LogCategory.Warning, "An error occurred while trying to get the parent process of machine studio.");
+ }
if (!_is_testing)
{