Vs2010 编辑器自动提示crash的解决办法

Vs2010 编辑器自动提示crash的解决办法:

System.InvalidCastException: Unable to cast COM object of type ‘System.__ComObject’ to interface type ‘Microsoft.VisualStudio.TextManager.Interop.IVsTextReplaceEvents’. This operation failed because the QueryInterface call on the COM component for the interface with IID ‘{CF9928D9-65AE-4319-A446-94ED5C45ECDE}’ failed due to the following error: 不支持此接口 (Exception from HRESULT: 0×80004002 (E_NOINTERFACE)). at System.StubHelpers.StubHelpers.GetCOMIPFromRCW(Object objSrc, IntPtr pCPCMD, Boolean& pfNeedsRelease) at Microsoft.VisualStudio.TextManager.Interop.IVsTextReplaceEvents.OnReplace(ChangeInput[] pCI) at Microsoft.VisualStudio.Editor.Implementation.VsTextBufferAdapter.OnTextBufferChangedHighPriority(Object sender, TextContentChangedEventArgs e) at Microsoft.VisualStudio.Text.Utilities.GuardedOperations.RaiseEvent[TArgs](Object sender, EventHandler`1 eventHandlers, TArgs args)


Solution:

http://connect.microsoft.com/VisualStudio/feedback/details/546369/studio-crashes-constantly

打开注册表,找到主键
32位系统: [HKEY_CLASSES_ROOT\CLSID\{73B7DC00-F498-4ABD-AB79-D07AFD52F395}\InProcServer32]
64位系统: [HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{73B7DC00-F498-4ABD-AB79-D07AFD52F395}\InProcServer32]

修改默认值为:
32位系统: “C:\Program Files\Common Files\Microsoft Shared\MSEnv\TextMgrP.dll”
64位系统: “C:\Program Files (x86)\Common Files\Microsoft Shared\MSEnv\TextMgrP.dll”

posted on 2012-03-29 11:10  SunWentao  阅读(1581)  评论(0编辑  收藏  举报