소스 검색

fixed final bugs

Bart Reedijk 10 년 전
부모
커밋
cfa4bd297b
2개의 변경된 파일2개의 추가작업 그리고 4개의 파일을 삭제
  1. 1 1
      Proftaak Remote Healthcare/Fietsclient/Fietsclient.csproj
  2. 1 3
      Proftaak Remote Healthcare/Fietsclient/KettlerBikeComm.cs

+ 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.
             }