XP box running a Win 2k3 server in a virual PC for CRM development...
Intermittently (once a day ish) when single stepping I get the following
exception:-
The CL context 0x1a19d8 has been unable to transition from COM Context
0x1a1868 to COM context 0x1a19d8 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.
The situation generally has a negative performance impactand may even lead to
the application becoming unresponsive or memory usage accumulating
continually over time. To avoid this problem, all single threaded apartment
(STA) threads should use pumping wait primitives (such as
CoWaitForMultip leHandles) and routinely pump messages during long running
operations.
The code that causes this is nothing special, nothing long running, any ideas?
Guy 2 3370
guy,
Check out this article: http://blogs.msdn.com/jmstall/archiv...hDeadLock.aspx
To disable this MDA:
1. goto "Debug", "Exceptions ..." menu
2. Managed Debugging Assistants, uncheck ContextSwitchDe adlock
Hope this helps,
Steve
"guy" <gu*@discussion s.microsoft.com wrote in message
news:42******** *************** ***********@mic rosoft.com...
XP box running a Win 2k3 server in a virual PC for CRM development...
Intermittently (once a day ish) when single stepping I get the following
exception:-
The CL context 0x1a19d8 has been unable to transition from COM Context
0x1a1868 to COM context 0x1a19d8 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.
The situation generally has a negative performance impactand may even lead
to
the application becoming unresponsive or memory usage accumulating
continually over time. To avoid this problem, all single threaded
apartment
(STA) threads should use pumping wait primitives (such as
CoWaitForMultip leHandles) and routinely pump messages during long running
operations.
The code that causes this is nothing special, nothing long running, any
ideas?
Guy
Thanks Steve, good stuff
Guy
"PlatinumBa y" wrote:
guy,
Check out this article: http://blogs.msdn.com/jmstall/archiv...hDeadLock.aspx
To disable this MDA:
1. goto "Debug", "Exceptions ..." menu
2. Managed Debugging Assistants, uncheck ContextSwitchDe adlock
Hope this helps,
Steve
"guy" <gu*@discussion s.microsoft.com wrote in message
news:42******** *************** ***********@mic rosoft.com...
XP box running a Win 2k3 server in a virual PC for CRM development...
Intermittently (once a day ish) when single stepping I get the following
exception:-
The CL context 0x1a19d8 has been unable to transition from COM Context
0x1a1868 to COM context 0x1a19d8 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.
The situation generally has a negative performance impactand may even lead
to
the application becoming unresponsive or memory usage accumulating
continually over time. To avoid this problem, all single threaded
apartment
(STA) threads should use pumping wait primitives (such as
CoWaitForMultip leHandles) and routinely pump messages during long running
operations.
The code that causes this is nothing special, nothing long running, any
ideas?
Guy
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: garth |
last post by:
When I running my program in ste-by-step mode I get his error message, it
does not seem to apply when running in stand alone mode. What is the best to
debug this error message?
ContextSwitchDeadlock was detected
Message: The CLR has been unable to transition from COM context 0x1a19d8 to
COM context 0x1a1b48 for 60 seconds. The thread that owns the destination
context/apartment is most likely either doing a non pumping wait or
processing...
|
by: OldButStillLearning |
last post by:
Hello, I am getting this "ContextSwitchDeadlock" error message pop up in
situations where I am doing a Data Reader loop, where I am processing about
40,000 records. For each record read via the data reader, I am creating
another data reader to read another database table (can't join these tables -
on different machines) to get additional information. I am guessing that I
am getting this error message becuase the loop is taking longer the...
|
by: Jesper |
last post by:
Hi,
In a single-threaded app I'm getting a ContextSwitchDeadlock MDA everytime I
debug the app - in fact - I cant debug my app as I'm iterrupted by this
funtionality before I can locate any bug!!!. I've read about how to
deactivate this on the net, but none of the tricks work on my app.
Please help.
regards Jesper, DK.
|
by: Waldy |
last post by:
Hi there,
every time I try stepping through C# projects in VS 2005, I am
plagued by the ContextSwitchDeadlock error messages. Is there any way of
avoiding this?
|
by: Connie |
last post by:
Dear All,
If i step over my visual basic 2005 code, i got this error:
The CLR has been unable to transition from COM context 0x1a2008 to COM
context 0x1a2178 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...
| |
by: Kalpana |
last post by:
Hi,
As iam working on convertion of C#1.1 to 2.0. Iam facing a problem
(screen is flickered) while opening and closing any artifacts. When i
tried to debug it is througing ContextSwitchDeadlock MDA exception i.e.
The CLR has been unable to transition from COM context 0x1a0768 to COM
context 0x1a08d8 for 60 seconds. The thread that owns the destination
context/apartment is most likely either doing a non pumping wait or
processing a...
|
by: =?Utf-8?B?SkI=?= |
last post by:
Hello
As I debug the C# code with a break point and by pressing F11 I
eventually get a message stating:
ContextSwitchDeadlock was detected
Message: The CLR has been unable to transition from COM context 0x17aeb8 to
COM context 0x17abd8 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.
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
| |
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |