title: Operation aborted (Exception from HRESULT: 0x80004004 E_ABORT) when setting text in a VS2010 macro
body: <p>Some very simple macros don't work for me in VS2010.  For instance if I do:</p>
  
  <pre><code>    DTE.ActiveDocument.Selection.Text = "123"
  </code></pre>
  
  <p>this will work fine, but if instead I type</p>
  
  <pre><code>    DTE.ActiveDocument.Selection.Text = "//123"
  </code></pre>
  
  <p>then this fails with the ugly abort message that I included in the title.  This is when I run it in a C++ Source Editor window.  There is an assortment of symbol characters that all cause the assignment of the text to 'Selection.Text' to fail in this way.  There was no problem with this in VS2008.</p>
  
  <p>There appears to be nothing about this on the web though, so I'm thinking that it must be a problem with my setup.  I am aware that it is possible to get around the problem by creating an edit point and then using the 'Insert' method, but it's sometimes annoying that I can't just record and run a temporary macro without editing it first.</p>
  
  <p>I'm wondering:</p>
  
  <p>a) Whether anyone else has experienced this?</p>
  
  <p>b) Whether anyone knows of a solution to it, or how to track down a solution?</p>
  
  <p>My addins are:
  Code Collaborator,
  VMDebugger,
  VSBuildStatus - 
  although I'm pretty sure that the problem existed before these were added.</p>
  
  <p>My extensions are:
  AnkhSVN,
  CommandingImage,
  Productivity Power Tools,
  Visual Assist X,
  Visual Studio Color Theme Editor - 
  again, as far as I remember, the problem predates most of these extensions being installed.</p>
  
  <p>I am running VS2010 on 64-bit Windows 7.</p>