title: SQL server 2012. Exception: attempted to read or write protected memory (MS.VS.OLE.Interop)
body: <p>I am more an end-user of SQL Server 2012. When I right click on a table name and select "Edit top 200 rows" menu item. I get this message:</p>
  
  <pre><code> Exception has been thrown by the target of an invocation. (mscorlib)
   Additional information:
     Attempted to read or write protected memory. This is often an indication that 
     other memory is corrupt. (Microsoft.VisualStudio.OLE.Interop)
  </code></pre>
  
  <p>If I try to do the right click again, SQL server will stop working and close. I still can use SQL commands to insert or update database. I have been searching around for a solution, and found this link: <a href="http://social.msdn.microsoft.com/Forums/vstudio/en-US/42b79da5-6f1e-4122-a2cb-00def87a1ae2/microsoftvisualstudiooleinterop-attempted-to-read-or-write-protected-memory-this-is-often-an?forum=visualstudiogeneral">http://social.msdn.microsoft.com/Forums/vstudio/en-US/42b79da5-6f1e-4122-a2cb-00def87a1ae2/microsoftvisualstudiooleinterop-attempted-to-read-or-write-protected-memory-this-is-often-an?forum=visualstudiogeneral</a></p>
  
  <p>But it still does not help me to understand clearly the cause or find the solution to the issue. Any help to resolve this problem is highly appreciated. Thanks.</p>