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

Posted on 2006-04-03
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.
Question by:gurteen
    LVL 48

    Expert Comment

    what line does this happen?
    LVL 13

    Expert Comment

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

    Expert Comment

    If that happens to be the issue an explaination will follow.
    LVL 13

    Accepted Solution

    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.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
    Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now