[Mono-dev] Mono C# Serial Port problem

PaceyIV paceynet at gmail.com
Fri Jun 6 15:20:36 EDT 2008


I have the same problem.
I compile the code located at
http://www.mono-project.com/HowToSystemIOPorts.
When I run it I get this:

Unhandled Exception: System.TimeoutException: The operation has timed-out.
  at System.IO.Ports.SerialPortStream.Read (System.Byte[] buffer, Int32
offset, Int32 count) [0x00000] 
  at System.IO.Ports.SerialPort.read_byte () [0x00000] 
  at System.IO.Ports.SerialPort.ReadByte () [0x00000] 
  at (wrapper remoting-invoke-with-check)
System.IO.Ports.SerialPort:ReadByte ()
  at SerialPortTest.ReadData () [0x00006] in
/home/paceyiv/programmazione/momo/SerialPortTest/SerialPortTest/Main.cs:44 
  at SerialPortTest.Test () [0x00062] in
/home/paceyiv/programmazione/momo/SerialPortTest/SerialPortTest/Main.cs:36 
  at SerialPortTest.Main (System.String[] args) [0x00006] in
/home/paceyiv/programmazione/momo/SerialPortTest/SerialPortTest/Main.cs:14 


I've got Ubuntu 8.04, Kernel Linux 2.6.25
-- 
View this message in context: http://www.nabble.com/Mono-C--Serial-Port-problem-tp17241892p17699462.html
Sent from the Mono - Dev mailing list archive at Nabble.com.



More information about the Mono-devel-list mailing list