我們遇到了一個問題,試圖在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