C # unable to respond after a long running time

Source: Internet
Author: User
C # ProgramUnable to respond after a long running time

 

5 Supplement:Hello everyone, I have written a C # application. It takes about five minutes to run because of the long running time. However, when the window is running, there is a status that cannot respond, that is, the entire window can be clicked except the close and minimize buttons, but all others cannot be clicked, but the program can still run normally and there is no error. Please help me tell me why. Many programs do not respond when the CPU usage is 100%.
A large loop may occupy the main thread. multithreading is recommended. As long as the operation process does not involve interface operations, you can use a simple thread.

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.