The CLR has been unable to transition from COM context 0xXXXXXX to COM context 0xXXXXXX 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

Error Message:

“The CLR has been unable to transition from COM context 0x1979d8 to COM context 0x197868 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.”

You get this nasty error message and your life is sucked. This happens when you are debugging your application and using breakpoints.

Fix For The Problem:

Go to menu Debug->Exception-> a form appears. Then in Managed Debug Assistants section, just uncheck the ContextSwitchDeadlock.

Note:

If you are not able to see Exception MenuItem in debug menu, then add it from Tools->Customize->Commands.

Advertisements

The URI to TrackBack this entry is: https://indiandeve.wordpress.com/2009/10/23/the-clr-has-been-unable-to-transition-from-com-context-0xxxxxxx-to-com-context-0xxxxxxx-for-60-seconds-the-thread-that-owns-the-destination-contextapartment-is-most-likely-either-doing-a-non-pumping/trackback/

RSS feed for comments on this post.

4 CommentsLeave a comment

  1. thank you so much , you saved my hrs.

  2. Ahoy! howdy everybody

    New here, hope im made welcome 🙂

  3. thank you very very much…………..

  4. джон мейнард кейс иктисодиети тал тимоти ва кейс челкиелена проклова на диетеможо похудеть если не есть хлебя похудела такдиета кидманпохудеть на полыниможно ли есть йогурт при гречневой диетезолотой шарик похудение отзывыоблицовочный кирпич диеты для похудения за неделюможно ли похудеть на 2 размераврач эндокринолог-диетологфото диетических блюдрецепты при диетическом питаниидиета при энтеро-вирусной инфекциидешевая и эффективная диетадоклад по биологии правильное питание детей 9-11 классыможно ли за 20 дней похудеть на 15 кгчто такое диетологдиета хорошего настроенияснижение веса в краснодаре


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: