Click here to Skip to main content
15,894,405 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm in the process of calling a function repeatedly for transferring data from one server to another. However, I get the following error message. The error is not occurred on a particular line; so , it is hard to debug.

The CLR has been unable to transition from COM context 0x1b1e78 to COM
context 0x1b1fe8 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.
Posted
Updated 11-Aug-11 1:11am
v2

Thanks Dear for kind reply....But little bit more hard problem is there...i Use visual studio 2008 and there no option that suggested by you....
Debug -> Exceptions -> Managed Debug Assistants
so what to do more if any idea plz specify.
 
Share this answer
 
Comments
Suresh Suthar 12-Aug-11 0:36am    
Hi Rakesh, There is an option under Debug menu or Press Ctrl+D+E Exception dialog will open...

And please don't post your question in solution just add a comment to existing question or solution....
[no name] 12-Aug-11 2:10am    
Thanks dear now my problem resolved......once again thanks for kind help
I think this is 10th question, that's answer is first result of Google search[^].


OK here you go

http://blog.wpfwonderland.com/2007/08/16/clr-has-been-unable-to-transition-from-com-context-for-60-seconds/[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900