Process a very long operation without sending a Windows message

Source: Internet
Author: User

I wrote a vsto Excel project for the project, and the debugging times "CLR cannot be converted from com context 0x159268 to com context 0x158f88, which has lasted 60 seconds. The thread with the target Context/unit is likely to execute a non-pump wait or process a very long operation without sending a Windows message. This usually affects the performance and may even lead to applicationsProgramNo response or memory usage accumulates over time. To avoid this problem, all single-threaded (STA) threads should use pump-type wait elements (such as cowaitformultiplehandles) and regularly send messages during long-running operations ." After confirming, you cannot perform a one-step test (this problem is left blank when you execute .exe ).
Check the relevant information and select an exception under the debugging menu of vs. net. Cancel the triggering option next to "contextswitchdeadlock" under "managed debugging assistants,

Debug again,

Solve the problem.

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.