[Mono-list] System.IO.SerialPort.BytesToRead closes program
trampster
trampster at gmail.com
Tue Apr 7 07:39:44 EDT 2009
it appears that calling System.IO.SerialPort.BytesToRead closes my
application when runing on windows using mono 2.4. The following code
reproduces the problem. No error message or exception seems to be generated
it just closes.
using System.IO.Ports;
using System;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
SerialPort serialPort = new SerialPort("Com4", 19200);
serialPort.Open();
Console.WriteLine("before");
int bytesToRead = serialPort.BytesToRead;
Console.WriteLine("after");
}
}
}
My questions are as follows.
1. I'm I doing something wrong, (the code works when run on dot net)
2. Does this work on the linux build?
I raised a bug https://bugzilla.novell.com/show_bug.cgi?id=490910
but it is not getting any activity.
I am very interested in getting my coding running on mono, and was under the
impression that all this .net 2.0 stuff was implemented and stable. Was I
wrong?
--
View this message in context: http://www.nabble.com/System.IO.SerialPort.BytesToRead-closes-program-tp22927258p22927258.html
Sent from the Mono - General mailing list archive at Nabble.com.
More information about the Mono-list
mailing list