我们遇到了一个问题,试图在Visual Studio(2010或2012)中打开特定设计器文件将导致其无法恢复崩溃('Visual Studio已停止工作')。Visual Studio设计器崩溃(在Windows 8上)
附加一个调试器时,这个尝试的过程中抛出一个System.NullReferenceException
,带有堆栈跟踪:
at System.Windows.Forms.NativeWindow.AddWindowToTable(IntPtr handle, NativeWindow window)
at System.Windows.Forms.NativeWindow.AssignHandle(IntPtr handle, Boolean assignUniqueID)
at System.Windows.Forms.Design.ControlDesigner.ChildSubClass..ctor(ControlDesigner designer, IntPtr hwnd)
at System.Windows.Forms.Design.ControlDesigner.HookChildHandles(IntPtr firstChild)
at System.Windows.Forms.Design.ControlDesigner.HookChildControls(Control firstChild)
at System.Windows.Forms.Design.ControlDesigner.HookChildControls(Control firstChild)
at System.Windows.Forms.Design.ControlDesigner.HookChildControls(Control firstChild)
at System.Windows.Forms.Design.ControlDesigner.HookChildControls(Control firstChild)
at System.Windows.Forms.Design.ControlDesigner.OnHandleChange()
at System.Windows.Forms.Design.ControlDesigner.DesignerWindowTarget.OnHandleChange(IntPtr newHandle)
at System.Windows.Forms.Control.ControlNativeWindow.OnHandleChange()
at System.Windows.Forms.NativeWindow.AssignHandle(IntPtr handle, Boolean assignUniqueID)
at System.Windows.Forms.NativeWindow.AssignHandle(IntPtr handle)
at System.Windows.Forms.NativeWindow.WindowClass.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
这个问题一直出现在开发盒子,我们已经更新到Windows 8企业(和现在使用的固态硬盘)。 Windows 7 Professional上的旧盒子始终如此而不是表现出这种行为。这个问题似乎也只是出现在特定的设计器文件上,尽管它还不清楚为什么。
有没有人有任何建议来解决这个问题,或进一步调查?
在http://connect.microsoft.com/VisualStudio提交错误 – Florian
您是否尝试安装VS2012 Update 4的RC? – magicandre1981