C# SerialPort System.ObjectDisposedException, safe handle has been closed 解决方案
摘要:If I use GC.SuppressFinalize(serialPort.BaseStream), it still doesn't work in my case. Although the serial port object is not disposed by GC, the serial port can't receive data yet.I find another way, and it works always!I write a endless loop to check and create a new serial port object if
阅读全文