We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

The CLR has been unable to transition from COM context 0x1a0990 to COM context 0x1a0b00 for 60 seconds. (?????)

gurteen
gurteen asked
on
Medium Priority
2,116 Views
Last Modified: 2012-08-13
Can anyone give me a clue here?  It pops up while I'm debugging my C# 2.0 VS 2005 application, as I'm looking at the different variables, trying to figure out what paths my app is taking....

The CLR has been unable to transition from COM context 0x1a0990 to COM context 0x1a0b00 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.
Comment
Watch Question

CERTIFIED EXPERT

Commented:
what line does this happen?

Commented:
Do you have the [STAThread] attribute anywhere?  If so try removing it and see how that goes.

Commented:
If that happens to be the issue an explaination will follow.
Commented:
Since I wont be able to responde for a little while i'll give a little more. look at ApartmentState in general.  Components may need to run either Single threaded or mutlithreaded apartment.

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.