Freeze on SerialPort.Open / DeviceIoControl / GetcommState with usbser.sys
问题 I have a C program which opens a handle to a COM port, writes some bytes to it, reads some bytes out, then closes the handle and exits. However, when I run the program like 10 times in a row, it starts to take very long to complete the GetCommState function and to get stuck in the SetCommState function. The same thing happens in C# with a simple SerialPort object. The only fix I could find is reconnecting the device to the port. Is there some more elegant way to get rid of this freeze? Is it