skinned_knuckles
Member
- Joined
- Mar 14, 2005
- Messages
- 10
- Programming Experience
- 5-10
I'm using VB.NET 2005 to make a RS232 Serial Port connection with a device. I am using the new SerialPort Class that was added to .net 2.0 and I am not using any handshaking or flow control. Everything works great with 1 exception. If I try to close the serial port without first stopping the data stream coming from the device the program hangs. I wonder if I'm having trouble because the DataReceived Event is raised on another thread.
How can I close an active SerialPort.
thanks
Jonathan
How can I close an active SerialPort.
thanks
Jonathan