C # industrial control software written in MSComm. If it is a terminal that sends data directly to the software, it is normal that the terminal transfers data through another terminal. Once the software receives data, it will be stuck for a while regardless of the size, please answer this question !!!
Private void axmscomm1_oncomm (Object sender, eventargs E)
{
If (axmscomm1.commevent = 2)
{
Textbox1.text = textbox1.text + (string) axmscomm1.input; // Test 1
// Buff = (byte []) axmscomm1.input; // Test 2
// Textbox1.text = textbox1. Text + convert. tostring (buff );
}
}
This is a gateway PC software, where data is sent from the terminal. It will be stuck for a while, and the serial assistant using Dingding will not be stuck. I don't know why.
In addition, the software works normally if data is directly uploaded through the gateway. I don't know where the problem is ??