[Mono-dev] Mono C# Serial Port problem
skolima at gmail.com
Thu May 15 11:21:43 EDT 2008
Try creating the SerialPort in the same Thread that uses it afterwards.
On Thu, May 15, 2008 at 4:49 PM, Alan_Chun <kokolee88 at hotmail.com> wrote:
> Hi Arek,
> That's the whole .cs file I have.
> I know it looks strange but under mono, the data received event is not
> working. That's why I create another thread to do data polling. Maybe you
> have better ways to do that?
> Arek Waliszewski wrote:
>> Alan_Chun pisze:
>>> HI, currently I am porting a windows app to linux using Mono. I have some
>>> difficulties to get the serial port work. here is the code(based on mono
>> Could you post whole of your program.
>> It looks like you are trying to open serial port in the main thread,
>> then create additional thread that reads something from the serial port,
>> while your main thread is sending something... It looks at least
>> weird... It looks bad.
>> Mono-devel-list mailing list
>> Mono-devel-list at lists.ximian.com
> View this message in context: http://www.nabble.com/Mono-C--Serial-Port-problem-tp17241892p17255001.html
> Sent from the Mono - Dev mailing list archive at Nabble.com.
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
MS-DOS user since 5.0
Windows user since 3.11
Linux user since kernel 2.4
Novell Netware user since 2.2
WARCRAFT user since 1.0
More information about the Mono-devel-list