编译时VC++崩溃

VC++ Crashes when Compiling

本文关键字:崩溃 VC++ 编译      更新时间:2023-10-16

这可能不是放这个的合适地方,但我没有其他地方可以去。

每次我按F7,它都会崩溃。如果我更改代码,然后按F5,它就会崩溃。每次我编译任何东西时,它都会崩溃。但是,有时它会成功,因为在它崩溃后,我可以重新加载VC++,而不必重新编译。这主要只是调试时的一个极端烦恼。

我试着调试它,它导致了这个问题:

An unhandled exception of type 'System.InvalidCastException' occurred in Microsoft.VisualStudio.Shell.10.0.dll
Unable to cast COM object of type 'System.__ComObject' to interface type 'Microsoft.VisualStudio.OLE.Interop.IServiceProvider'.
This operation failed because the QueryInterface call on the COM component for the interface with IID '{6D5140C1-7436-11CE-8034-00AA006009FA}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).

我试图取消注册,然后通过cmd提示符重新注册ieproxy.dll和actxpxy.dll,但什么都不起作用。我不知道该怎么继续。

卸载Internet Explorer 10,重新安装Internet Explorer 9,然后卸载对Internet Explorer 9的更新。现在重新注册ieproxy.dll,它就可以工作了。