Visual Studio (2010 または 2012) 内で特定のデザイナー ファイルを開こうとすると、回復不能なクラッシュが発生するという問題が発生しています (「Visual Studio が動作を停止しました」)。
これが試行されたときにデバッガーをプロセスにアタッチすると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 Enterprise に更新した (現在は SSD を使用している) 開発ボックスで一貫して発生します。Windows 7 Professional の古いボックスでは、一貫してこの動作は見られません。また、この問題は特定のデザイナー ファイルでのみ発生するようですが、その理由はまだ明らかではありません。
これを解決したり、さらに調査したりするための提案はありますか?