Ask C # To use the MSComm control PC software to receive questions !!

Source: Internet
Author: User

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 ??

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.