# HG changeset patch # User moel.mich # Date 1272437745 0 # Node ID 4a9f8154d8f0ac93b8588f66d0b383826daa2177 # Parent 0845adc5402e15a22827b0684ebff94c3e09a0ec Fixed exception handling in StartupManager (some systems throw a DirectoryNotFoundException instead of a FileNotFoundException). diff -r 0845adc5402e -r 4a9f8154d8f0 GUI/StartupManager.cs --- a/GUI/StartupManager.cs Tue Apr 27 18:43:56 2010 +0000 +++ b/GUI/StartupManager.cs Wed Apr 28 06:55:45 2010 +0000 @@ -55,7 +55,7 @@ try { scheduler = new TaskSchedulerClass(); scheduler.Connect(null, null, null, null); - } catch (Exception) { + } catch { scheduler = null; } @@ -101,7 +101,7 @@ ITaskFolder folder; try { folder = root.GetFolder("Open Hardware Monitor"); - } catch (FileNotFoundException) { + } catch (IOException) { folder = root.CreateFolder("Open Hardware Monitor", ""); } folder.RegisterTaskDefinition("Startup", definition, @@ -114,10 +114,10 @@ try { ITaskFolder folder = root.GetFolder("Open Hardware Monitor"); folder.DeleteTask("Startup", 0); - } catch (FileNotFoundException) { } + } catch (IOException) { } try { root.DeleteFolder("Open Hardware Monitor", 0); - } catch (FileNotFoundException) { } + } catch (IOException) { } } private void CreateRegistryRun() { diff -r 0845adc5402e -r 4a9f8154d8f0 Properties/AssemblyInfo.cs --- a/Properties/AssemblyInfo.cs Tue Apr 27 18:43:56 2010 +0000 +++ b/Properties/AssemblyInfo.cs Wed Apr 28 06:55:45 2010 +0000 @@ -69,5 +69,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("0.1.32.0")] -[assembly: AssemblyFileVersion("0.1.32.0")] +[assembly: AssemblyVersion("0.1.33.0")] +[assembly: AssemblyFileVersion("0.1.33.0")]