G
Guest
Hi All,
I write a dll use vb.net 2005 to read data from a serial port and use this
dll in a C# 2005 application. It works well except when I close the port.
After I close the port, sometimes the dll stopped at the readline statement
in data_received function. But the port closed already, why this function is
still fired? ( is it because the delay message? I guess ) I catch the
exception and try to throw a excption, but the dll stopped at the throw
exception statement. This problem is not always there, but sometimes, lets
say 1 of 5. The error message in debug mode is "System.IO.IOException was
unhandled".
Your help are always appreciated
I write a dll use vb.net 2005 to read data from a serial port and use this
dll in a C# 2005 application. It works well except when I close the port.
After I close the port, sometimes the dll stopped at the readline statement
in data_received function. But the port closed already, why this function is
still fired? ( is it because the delay message? I guess ) I catch the
exception and try to throw a excption, but the dll stopped at the throw
exception statement. This problem is not always there, but sometimes, lets
say 1 of 5. The error message in debug mode is "System.IO.IOException was
unhandled".
Your help are always appreciated