<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : TechTip: ContextSwitchDeadlock in Visual Studio 2005</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce Classic : TechTip: ContextSwitchDeadlock in Visual Studio 2005</description>
  <pubDate>Wed, 15 Apr 2026 10:57:52 -700</pubDate>
  <lastBuildDate>Mon, 09 Jul 2007 12:23:46 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=119</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>TechTip: ContextSwitchDeadlock in Visual Studio 2005 :    Level 100 DevForce Express  View...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=119&amp;PID=257#257</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=21" rel="nofollow">IdeaBlade</a><br /><strong>Subject:</strong> 119<br /><strong>Posted:</strong> 09-Jul-2007 at 12:23pm<br /><br /><TABLE cellSpacing=0 cellPadding=7 width="100%"><T><TR vAlign=top =#ffffff><TD colSpan=2 height=18><a href="http://rs6.net/tn.jsp?t=wefqa6bab.0.lirg6ubab.zufnlmbab.2355&amp;ts=S0234&amp;p=http%3A%2F%2Fwww.ideablade.com%2Ftech_tips_definiti&#111;ns.htm" target="_blank"><FONT size=3>Level 100 <BR title=http://rs6.net/tn.jsp?t=wefqa6bab.0.lirg6ubab.zufnlmbab.2355&amp;ts=S0234&amp;p=http%3A%2F%2Fwww.ideablade.com%2Ftech_tips_definiti&#111;ns.htm>DevForce Express</FONT></A></TD><TD width="43%"><DIV align=center><a href="http://rs6.net/tn.jsp?t=wefqa6bab.0.nblx5vbab.zufnlmbab.2355&amp;ts=S0234&amp;p=http%3A%2F%2Fwww.ideablade.com%2Ftechtips_summary.html" target="_blank"><FONT size=3>View Archived Tech Tips</FONT></A></DIV></TD><TD><DIV align=right></DIV></TD></TR><TR vAlign=center =#ffffff><TD width="8%" height=18><strong><FONT color=#000000 size=3><a href="http://rs6.net/tn.jsp?t=wefqa6bab.0.nblx5vbab.zufnlmbab.2355&amp;ts=S0234&amp;p=http%3A%2F%2Fwww.ideablade.com%2Ftechtips_summary.html" target="_blank"><img src="http://www.ideablade.com/images/lightbulb.jpg" height="33" width="33" border="0" alt="View%20all%20Tech%20Tips" /></A></FONT></strong></TD><TD colSpan=3><strong>ContextSwitchDeadlock in Visual Studio 2005</strong></TD></TR></T></TABLE><TABLE cellSpacing=0 cellPadding=7 width="100%"><T><TR><TD><TABLE cellSpacing=0 cellPadding=0 width="100%"><T><TR><TD><TABLE cellSpacing=0 cellPadding=0 width="100%"><T><TR><TD colSpan=2><P>Anyone who has been debugging within Visual Studio for any length of time has probably encountered the following message. </P></TD></TR><TR><TD width="6%">&nbsp;</TD><TD width="94%"><P><FONT face="Courier New, Courier, mono"><img src="http://www.ideablade.com/images/tech_tip_c&#111;ntextswitch.jpg" height="242" width="337" border="0" /></FONT> </P></TD></TR><TR><TD colSpan=2><P>This is invariably very frustrating because it usually happens when you are deep in a debug trace and in order to continue debugging you need to restart the entire debug session. This is not always a simple process. More annoying is the fact that the error message is anything but helpful in determining what it is that you actually did wrong. <P>In fact, you didn’t do anything wrong. Visual Studio was just trying to help. </P><P>The following link describes the problem in some detail.<BR></P></TD></TR><TR><TD>&nbsp;</TD><TD><TABLE cellSpacing=0 cellPadding=4 width="80%" =#e8e8e8 border=1><T><TR><TD>http://msdn2.microsoft.com/en-us/library/ms172233.aspx</TD></TR></T></TABLE></TD></TR><TR><TD colSpan=2><P>There are several approaches that we have found to work around the problem. One simple but fairly severe approach is to execute a .reg file with the following contents.</P></TD></TR><TR><TD>&nbsp;</TD><TD><TABLE cellSpacing=0 cellPadding=4 width="80%" =#e8e8e8 border=1><T><TR><TD>Windows Registry Editor Version 5.00<BR>&#091;HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework&#093;<BR>"MDA"="0"</TD></TR></T></TABLE></TD></TR><TR><TD colSpan=2><P>Another alternative is to go the menu in Visual Studio and uncheck the <EM>ContextSwitchDeadlock</EM> item. </P><P>Hopefully this will make debugging a slightly less painful experience.</P></TD></TR><TR><TD>&nbsp;</TD><TD><TABLE cellSpacing=0 cellPadding=4 width="80%" =#e8e8e8 border=1><T><TR><TD>Debug -&gt; Exceptions -&gt; Managed Debug Assistants </TD></TR></T></TABLE></TD></TR></T></TABLE></TD></TR></T></TABLE></TD></TR></T></TABLE>]]>
   </description>
   <pubDate>Mon, 09 Jul 2007 12:23:46 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=119&amp;PID=257#257</guid>
  </item> 
 </channel>
</rss>