Groups | Blog | Home
all groups > dotnet clr > june 2007 >

dotnet clr : vs2005 Debugging problem, ContextSwitchDeadlock was detected


Sriman
6/12/2007 10:46:00 AM
Hi,
How to resolve this problem? when i am debugging my application i got the
following error. Unable to fix the problem. Need your suggestion.
Error:
1) How to disable MDA?
2)ContextSwitchDeadlock was detected
Message: The CLR has been unable to transition from COM context 0x1b2938 to
COM context 0x1b2aa8 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.

Thanks in advance.
Regards,
Brian Gideon
6/14/2007 5:56:44 AM
[quoted text, click to view]

You can disable this MDA by putting the following in the app.config
file.

<configuration>
<mdaConfig>
<assistants>
<contextSwitchDeadlock enable="false" />
</assistants>
</mdaConfig>
</configuration>
AddThis Social Bookmark Button