System.Runtime.InteropServices.ExternalException (0x80004005)

jinxuliang 2014-04-25 12:45:36
1、windows2003 server平台上,.net framewrok 4.0框架。开发的一个应用程序,操作winfrom界面,界面出现红叉,捕获的异常提示如下:

System.Runtime.InteropServices.ExternalException (0x80004005): A generic error occurred in GDI+.
at System.Drawing.Graphics.CheckErrorStatus(Int32 status)
at System.Drawing.Graphics.DrawLine(Pen pen, Int32 x1, Int32 y1, Int32 x2, Int32 y2)
at System.Windows.Forms.GroupBox.DrawGroupBox(PaintEventArgs e)
at System.Windows.Forms.GroupBox.OnPaint(PaintEventArgs e)
at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer)
at System.Windows.Forms.Control.WmPaint(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.GroupBox.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
该异常是通过日志记录的全局异常捕获获得的,没有与源代码直接相关的堆栈信息。查阅了很多资料,现在无法下手排除问题,请高人指导。
...全文
1031 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
於黾 2014-04-25
  • 打赏
  • 举报
回复
看看designer.cs文件内容 是不是有语法错误
Justin-Liu 2014-04-25
  • 打赏
  • 举报
回复
jinxuliang 2014-04-25
  • 打赏
  • 举报
回复
1、已经GOOGLE了大量资料,只见提问,回答的太少。 2、该问题是偶然发生,可能好几天不发生,也可能一天发生好几次。
Anymore 2014-04-25
  • 打赏
  • 举报
回复 1
gdi 图片操作方面的错误 试试参考,不知道是否同样操作方面的问题。 http://hi.baidu.com/zhaoyingyatou/item/21e521f3f77e2cc0a835a2ae

110,499

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧