B
BrianK
Hello,
My CE 6.0 device has 3 serial ports and the serial port class can enumurate
them all via this method just fine.
string[] AvailablePorts = SerialPort.GetPortNames();
Also creating a serial port object is no problem for any of the 3 ports as
follows,
SerialPort hSp = new SerialPort(ComName, baudRate,
System.IO.Ports.Parity.None, dataBits, System.IO.Ports.StopBits.One);
I can also do this,
hSp.BaudRate = 9600;
However, when I try to open any of the 3 ports(I know com1 is the debug
port) I get an exception as follows,
A first chance exception of type 'System.IO.IOException' occurred in
System.dll
I cannot open the port, what is wrong here?
As far as I can tell no other applications are running that would have
claimed ports 2 and 3.
Thanks,
Brian
My CE 6.0 device has 3 serial ports and the serial port class can enumurate
them all via this method just fine.
string[] AvailablePorts = SerialPort.GetPortNames();
Also creating a serial port object is no problem for any of the 3 ports as
follows,
SerialPort hSp = new SerialPort(ComName, baudRate,
System.IO.Ports.Parity.None, dataBits, System.IO.Ports.StopBits.One);
I can also do this,
hSp.BaudRate = 9600;
However, when I try to open any of the 3 ports(I know com1 is the debug
port) I get an exception as follows,
A first chance exception of type 'System.IO.IOException' occurred in
System.dll
I cannot open the port, what is wrong here?
As far as I can tell no other applications are running that would have
claimed ports 2 and 3.
Thanks,
Brian