【发布时间】:2011-07-18 17:55:22
【问题描述】:
我创建了一个新的空白表单并尝试切换到设计模式,但 ide 锁定并使用了我的一个 CPU 的 100%。我必须强行杀死它才能回到可行的 ide。查看源代码时,一切似乎都很好。我在现有项目(在别人的机器上工作)和全新的解决方案中都尝试了这个,两者都具有相同的结果。我正在开发安装了所有更新的 WinXP pro box。
执行下面推荐的操作(附加调试器并暂停执行)表明它卡在这里:
[Managed to Native Transition]
System.Drawing.dll!System.Drawing.Graphics.DrawRectangle(System.Drawing.Pen pen, int x, int y, int width, int height) + 0x3d 字节
System.Drawing.dll!System.Drawing.Graphics.DrawRectangle(System.Drawing.Pen pen, System.Drawing.Rectangle rect) + 0x14 bytes
System.Design.dll!System.Windows.Forms.Design.PanelDesigner.DrawBorder(System.Drawing.Graphics 图形) + 0x97 字节
System.Design.dll!System.Windows.Forms.Design.PanelDesigner.OnPaintAdornments(System.Windows.Forms.PaintEventArgs pe = {ClipRectangle = {System.Drawing.Rectangle}}) + 0x50 字节
System.Design.dll!System.Windows.Forms.Design.ControlDesigner.WndProc(参考 System.Windows.Forms.Message m) + 0xd1e 字节 System.Design.dll!System.Windows.Forms.Design.ScrollableControlDesigner.WndProc(ref System.Windows.Forms.Message m = {System.Windows.Forms.Message}) + 0x12 字节
System.Design.dll!System.Windows.Forms.Design.ControlDesigner.DesignerWindowTarget.OnMessage(ref System.Windows.Forms.Message m) + 0x55 字节
System.Windows.Forms.dll!System.Windows.Forms.Control.ControlNativeWindow.WndProc(ref System.Windows.Forms.Message m) + 0x31 字节
System.Windows.Forms.dll!System.Windows.Forms.NativeWindow.DebuggableCallback(System.IntPtr hWnd, int msg = 15, System.IntPtr wparam, System.IntPtr lparam) + 0x57 字节
【问题讨论】:
标签: visual-studio visual-studio-2005