title: IE using mshtmled.dll. But what is mshtmled.dll?
body: <p>I have a web application which from time to time get IE in a hung state, where IE uses 100% of the CPU. The only way out is to terminate the IE process.</p>
  
  <p>When I look at the stack trace of the thread which is hung in iexplore.exe, I see that the stack traverses mshtmled.dll. I am used to see mshtml.dll in those stack traces, but not mshtmled.dll.</p>
  
  <p>The methods being called make you think there is a editor on the page (like <code>CSelectionManager::SetEditContext</code> or <code>CSelectionManager::EnsureEditContextClick</code>), but I have no HTML editor being used on the page (such as the FCK editor of the YUI RTE).</p>
  
  <p>So I am really wondering: how is mshtmled.dll used by IE?</p>
  
  <h2>Trying to disable mshtmled.dll</h2>
  
  <p>@VonC suggested in the comments that I disable the mshtmled.dll through Manage Add-ons dialog, which you get from the Programs tab of the Internet Options. After disabling that dll and restarting IE, I can see that it is reported as disabled:</p>
  
  <p><a href="http://img.skitch.com/20090226-c9e9ygek8i6a7di3jija2x317k.png" rel="nofollow noreferrer">alt text http://img.skitch.com/20090226-c9e9ygek8i6a7di3jija2x317k.png</a></p>
  
  <p>After this, I am however still able to reproduce the problem, and I do see (gasp!) mshtmled.dll being used in the stack trace of the hung thread:</p>
  
  <p><a href="http://img.skitch.com/20090226-m3167dxb8iaax3wgy22eatruyp.png" rel="nofollow noreferrer">alt text http://img.skitch.com/20090226-m3167dxb8iaax3wgy22eatruyp.png</a></p>
  
  <h2>Microsoft Hotfix</h2>
  
  <p>Microsoft has a <a href="http://support.microsoft.com/KB/896156" rel="nofollow noreferrer">hotfix to mshtmled.dll</a> for a problem very similar to the one I am seeing. But this hotfix is most likely installed on the machines on which we can reproduce the problem since we have SP3. It looks to me like the problem I'm having here is of a similar nature to the one fixed. I am just mentioning this here in case someone finds this useful.</p>