One of our clients is experiencing random lockup. I trace it down to the Port.Write(). The call does not return so the application appears hung up. Client can't kill the process with Task Manager if running as a Windows Service. If we run it as a console, yes client may kill the console window, but our application fails to start because the port does not exist. Here is the exact code to write a byte.
_port.Enabled = true;
The byte array is aways one byte long. We loop through an array of 15 bytes, write one byte, wait for 20ms, and write another.
We use 18.104.22.168. Thanks.