Fixed exception handling in StartupManager (some systems throw a DirectoryNotFoundException instead of a FileNotFoundException).
authormoel.mich
Wed, 28 Apr 2010 06:55:45 +0000
changeset 1044a9f8154d8f0
parent 103 0845adc5402e
child 105 f46d163ffba2
Fixed exception handling in StartupManager (some systems throw a DirectoryNotFoundException instead of a FileNotFoundException).
GUI/StartupManager.cs
Properties/AssemblyInfo.cs
     1.1 --- a/GUI/StartupManager.cs	Tue Apr 27 18:43:56 2010 +0000
     1.2 +++ b/GUI/StartupManager.cs	Wed Apr 28 06:55:45 2010 +0000
     1.3 @@ -55,7 +55,7 @@
     1.4        try {
     1.5          scheduler = new TaskSchedulerClass();
     1.6          scheduler.Connect(null, null, null, null);
     1.7 -      } catch (Exception) {
     1.8 +      } catch {
     1.9          scheduler = null;
    1.10        }
    1.11  
    1.12 @@ -101,7 +101,7 @@
    1.13        ITaskFolder folder;
    1.14        try {
    1.15          folder = root.GetFolder("Open Hardware Monitor");
    1.16 -      } catch (FileNotFoundException) {
    1.17 +      } catch (IOException) {
    1.18          folder = root.CreateFolder("Open Hardware Monitor", "");
    1.19        }
    1.20        folder.RegisterTaskDefinition("Startup", definition,
    1.21 @@ -114,10 +114,10 @@
    1.22        try {
    1.23          ITaskFolder folder = root.GetFolder("Open Hardware Monitor");
    1.24          folder.DeleteTask("Startup", 0);
    1.25 -      } catch (FileNotFoundException) { }
    1.26 +      } catch (IOException) { }
    1.27        try {
    1.28          root.DeleteFolder("Open Hardware Monitor", 0);
    1.29 -      } catch (FileNotFoundException) { }
    1.30 +      } catch (IOException) { }
    1.31      }
    1.32  
    1.33      private void CreateRegistryRun() {
     2.1 --- a/Properties/AssemblyInfo.cs	Tue Apr 27 18:43:56 2010 +0000
     2.2 +++ b/Properties/AssemblyInfo.cs	Wed Apr 28 06:55:45 2010 +0000
     2.3 @@ -69,5 +69,5 @@
     2.4  // You can specify all the values or you can default the Build and Revision Numbers 
     2.5  // by using the '*' as shown below:
     2.6  // [assembly: AssemblyVersion("1.0.*")]
     2.7 -[assembly: AssemblyVersion("0.1.32.0")]
     2.8 -[assembly: AssemblyFileVersion("0.1.32.0")]
     2.9 +[assembly: AssemblyVersion("0.1.33.0")]
    2.10 +[assembly: AssemblyFileVersion("0.1.33.0")]