开发者

WPF: Integration into WinForms Error - "The CLR has been unable to transition from COM context 0x1a8188 to COM context 0x1a8018 for 60 seconds"

The full error I get is as follows:

The CLR has been unable to transition from COM context 0x1a8188 to COM context 0x1a8018 for 60 seconds. The thread that owns the destination context/apartment is most likely either doing a non pumping wait or processing a very long running operation without pumping Windows messages. This situation generally has a negative performance impact and may even lead to the application becoming non responsive or memory usage accumulating continually over time. To avoid this problem, all single threaded apartment (STA) threads should use pumping wait primitives (such as CoWaitForMultipleHandles) and routinely pump messages during long running operations.

Any idea what this means? And how is should be solved? I tried searching on Google, but couldn't find anything of consequence, i.e. relating to my specific scenario.

Edit: The Specific scenario: 1. Integrating WPF into WinF开发者_如何学Corms 2. The WPF screens are written for a plugin dll, which is dynamically loaded into the main application.

Thanks

Hasanain


This means that you created an object on thread A, then tried to use it on thread B, but thread A was really busy and the COM object requires that it be running on thread A. Try to see why thread A is busy.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜