GUI/SoundGraphDisplay.cs
branchMiniDisplay
changeset 445 fe4c711fd7f8
parent 444 9b09e2ee0968
child 453 017874772461
     1.1 --- a/GUI/SoundGraphDisplay.cs	Thu Apr 18 23:25:10 2013 +0200
     1.2 +++ b/GUI/SoundGraphDisplay.cs	Sun Sep 21 21:55:36 2014 +0200
     1.3 @@ -53,10 +53,17 @@
     1.4              Process[] processes = Process.GetProcessesByName("SoundGraphAccess");
     1.5              if (!(processes.Length > 0))
     1.6              {
     1.7 +              try
     1.8 +              {
     1.9                  //Try to launch the sound graph process from the same folder as this executable
    1.10 -                string exeName=System.IO.Path.GetDirectoryName(Application.ExecutablePath);
    1.11 +                string exeName = System.IO.Path.GetDirectoryName(Application.ExecutablePath);
    1.12                  exeName += @"\SoundGraphAccess.exe";
    1.13 -                Process client = UserAccountControl.CreateProcessAsStandardUser(exeName,"");
    1.14 +                Process client = UserAccountControl.CreateProcessAsStandardUser(exeName, "");
    1.15 +              }
    1.16 +              catch (Exception e)
    1.17 +              {
    1.18 +                Debug.WriteLine("SoundGraphAccess.exe start-up failed: " + e.ToString());
    1.19 +              }
    1.20              }
    1.21  
    1.22              //Start our SoundGraph server