Error while loading a win form.
-
When I run the windows application, sometimes I get such error message "The CLR has been unable to transition from COM context 0x1a6fd8 to COM context 0x1a6e68 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." Can I know why such error message we get?
Regards, John.L.Ponratnam
-
When I run the windows application, sometimes I get such error message "The CLR has been unable to transition from COM context 0x1a6fd8 to COM context 0x1a6e68 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." Can I know why such error message we get?
Regards, John.L.Ponratnam
You may have a long running process in which .Net displays a error from the debugging assistants. Press CTRL+ALT+E to open the Exception options. I think this error is the Managed Debugging Assistants - ContextSwitchDeadlock. Try unchecking that setting and retrying the app. Did this work for you?
Any suggestions, ideas, or 'constructive criticism' are always welcome. "There's no such thing as a stupid question, only stupid people." - Mr. Garrison
modified on Tuesday, November 11, 2008 7:57 AM