serial port close hangs in compact frame work 3.5
Posted
by ananda
on Stack Overflow
See other posts from Stack Overflow
or by ananda
Published on 2009-12-18T13:09:53Z
Indexed on
2010/03/20
19:11 UTC
Read the original article
Hit count: 297
.net-compact-framework
|serialport
I have developed the application for windows mobile 5.0 and .net compact framework 2.0 sp2. This application communicates to the hardware device using serial port. This application works fine in windows mobile 5.0 based PDAs. I have handled data received event to get the data from serial port.
But when I run my application on windows mobile 6.1 and .net compact framework 3.5, my application hangs on serial port close API call. There are many workarounds mentioned in the .net compact framework blog like (closing the com port on different thread, opening the port in the beginning of the application and close once application exists, polling for data instead of event handling), but nothing is working consistently.
© Stack Overflow or respective owner