Hello
Our team is developing app for mobile device equipped with Windows CE and .net Compact Framework 1.0. As you know there is no support for serial ports, so we have decided to use opennetcf.io.serial class.
The class is great and has everything we need, so we are determined to run it. We have encountered problem with opening ports. Our computer has few ports - device we want to run is connected to com7. When we tried to open port from range 1-4, handle returned by CreateFile function was int like 3121212 etc. and function GetCommProperties was true.
But opening port 7 give us handle int -188212212 (negative sign before int). And function GetCommProperties gives false.
When we have debugged app (in event) we discovered ERROR_INVALID_HANDLE error from Marshal library (error no. 6).
Do you have any suggestion what is wrong ? Is there any problem with creating file, sharing violation - maybe there is a autostart app..
I would be very pleased for any answer.