tao2yue 2013-07-14 15:48 采纳率: 0%
浏览 3679

vs2012调试时出现异常

win8 x64 下安装了vs2012 补丁到update 3,一直正常使用,昨天觉得系统有点慢,就还原了下原来的做得ghost备份。vs2012变成了update 1。
悲剧发生了,所有的winform源代码都出现了问题:可以编译生成程序,但是不能调试,一启动调试,就出现“未正确初始化 GDI+ (内部 GDI+ 错误)。”,是在窗体InitializeComponent时提示的错误。
将vs2012补丁更新到update 3,仍然显示同样的错误,不能调试。
安装vs2013预览版,错误提示一摸一样。

求高人指点!怎样消除这个错误。百度,google都没能找到办法解决。

下面是异常的详细内容
未处理System.Runtime.InteropServices.ExternalException
Message=未正确初始化 GDI+ (内部 GDI+ 错误)。
Source=System.Drawing
ErrorCode=-2147467259
StackTrace:
在 System.Drawing.Graphics.FromHdcInternal(IntPtr hdc)
在 System.Drawing.Font.ToLogFont(Object logFont)
在 System.Drawing.Font.ToHfont()
在 System.Windows.Forms.Control.FontHandleWrapper..ctor(Font font)
在 System.Windows.Forms.Control.get_FontHandle()
在 System.Windows.Forms.ContainerControl.GetFontAutoScaleDimensions()
在 System.Windows.Forms.ContainerControl.get_CurrentAutoScaleDimensions()
在 System.Windows.Forms.ContainerControl.get_AutoScaleFactor()
在 System.Windows.Forms.ContainerControl.PerformAutoScale(Boolean includedBounds, Boolean excludedBounds)
在 System.Windows.Forms.ContainerControl.OnLayoutResuming(Boolean performLayout)
在 System.Windows.Forms.Control.ResumeLayout(Boolean performLayout)
在 titleChange.Form1.InitializeComponent() 位置 f:\Source\titleChange\Form1.Designer.cs:行号 122
在 titleChange.Form1..ctor() 位置 f:\Source\titleChange\Form1.cs:行号 16
在 titleChange.Program.Main() 位置 f:\Source\titleChange\Program.cs:行号 17
在 System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
在 Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
在 System.Threading.ThreadHelper.ThreadStart()
InnerException:

  • 写回答

1条回答 默认 最新

  • oyljerry 2015-01-03 05:38
    关注

    只能重装了,VS2012重装,然后达到UPDATE4

    评论

报告相同问题?

悬赏问题

  • ¥50 C++实现删除N个数据列表共有的元素
  • ¥15 Visual Studio问题
  • ¥15 state显示变量是字符串形式,但是仍然红色,无法引用,并显示类型不匹配
  • ¥20 求一个html代码,有偿
  • ¥100 关于使用MATLAB中copularnd函数的问题
  • ¥20 在虚拟机的pycharm上
  • ¥15 jupyterthemes 设置完毕后没有效果
  • ¥15 matlab图像高斯低通滤波
  • ¥15 针对曲面部件的制孔路径规划,大家有什么思路吗
  • ¥15 钢筋实图交点识别,机器视觉代码