From fd6d92b845f097bdaab9031fdfd80d068786f47c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20M=C3=B6ller?= Date: Thu, 18 Feb 2010 14:03:02 +0000 Subject: [PATCH] Added global exception handling for T-Balancer detection (to handle ArgumentException if portName does not exist). --- Hardware/TBalancer/TBalancerGroup.cs | 8 +++----- Properties/AssemblyInfo.cs | 4 ++-- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/Hardware/TBalancer/TBalancerGroup.cs b/Hardware/TBalancer/TBalancerGroup.cs index 9729b13..941ab45 100644 --- a/Hardware/TBalancer/TBalancerGroup.cs +++ b/Hardware/TBalancer/TBalancerGroup.cs @@ -119,11 +119,9 @@ namespace OpenHardwareMonitor.Hardware.TBalancer { hardware.Add(new TBalancer(portNames[i], protocolVersion)); return; } - } catch (IOException ioe) { - report.AppendLine(ioe.ToString()); - } catch (NullReferenceException ne) { - report.AppendLine(ne.ToString()); - } + } catch (Exception e) { + report.AppendLine(e.ToString()); + } report.AppendLine(); } } diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs index cca268b..0406b1f 100644 --- a/Properties/AssemblyInfo.cs +++ b/Properties/AssemblyInfo.cs @@ -69,5 +69,5 @@ using System.Runtime.InteropServices; // 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.21.2")] -[assembly: AssemblyFileVersion("0.1.21.2")] +[assembly: AssemblyVersion("0.1.21.3")] +[assembly: AssemblyFileVersion("0.1.21.3")]