Ver código fonte

fixed final bugs

Bart Reedijk 10 anos atrás
pai
commit
cfa4bd297b

+ 1 - 1
Proftaak Remote Healthcare/Fietsclient/Fietsclient.csproj

@@ -5,7 +5,7 @@
     <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
     <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
     <ProjectGuid>{49668592-ED5D-4907-9EA7-2DF70AB96271}</ProjectGuid>
-    <OutputType>Exe</OutputType>
+    <OutputType>WinExe</OutputType>
     <AppDesignerFolder>Properties</AppDesignerFolder>
     <RootNamespace>Fietsclient</RootNamespace>
     <AssemblyName>Fietsclient</AssemblyName>

+ 1 - 3
Proftaak Remote Healthcare/Fietsclient/KettlerBikeComm.cs

@@ -79,13 +79,11 @@ namespace Fietsclient
             catch (UnauthorizedAccessException)
             {
                 OnIncomingDebugLineEvent("ERROR: UnauthorizedAccessException throwed");
+                try { ComPort.Close(); } catch (Exception) { } // probeer om de ComPort wel te sluiten.
             }
             catch (InvalidOperationException)
             {
                 OnIncomingDebugLineEvent("ERROR: InvalidOperationException throwed");
-            }
-            finally
-            {
                 try { ComPort.Close(); } catch (Exception) { } // probeer om de ComPort wel te sluiten.
             }