首页 新闻 会员 周边

GDI+ 中发生一般性错误,是什么引起的?

0
悬赏园豆:5 [待解决问题]

【异常类型】:ExternalException
【异常信息】:GDI+ 中发生一般性错误。
【堆栈调用】:   在 System.Drawing.Image.SelectActiveFrame(FrameDimension dimension, Int32 frameIndex)
   在 System.Drawing.ImageAnimator.ImageInfo.UpdateFrame()
   在 System.Drawing.ImageAnimator.UpdateFrames()
   在 System.Windows.Forms.PictureBox.OnPaint(PaintEventArgs pe)
   在 System.Windows.Forms.Control.PaintTransparentBackground(PaintEventArgs e, Rectangle rectangle, Region transparentRegion)
   在 System.Windows.Forms.Control.PaintBackground(PaintEventArgs e, Rectangle rectangle, Color backColor, Point scrollOffset)
   在 System.Windows.Forms.Control.PaintBackground(PaintEventArgs e, Rectangle rectangle)
   在 System.Windows.Forms.Control.OnPaintBackground(PaintEventArgs pevent)
   在 System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)
   在 System.Windows.Forms.Control.WmPaint(Message& m)
   在 System.Windows.Forms.Control.WndProc(Message& m)
   在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
【异常方法】:Int32 SelectActiveFrame(System.Drawing.Imaging.FrameDimension, Int32)

问题补充:

【异常类型】:ArgumentException
【异常信息】:参数无效。
【堆栈调用】:   在 System.Drawing.Image.get_FrameDimensionsList()
   在 System.Drawing.ImageAnimator.CanAnimate(Image image)
   在 System.Drawing.ImageAnimator.ImageInfo..ctor(Image image)
   在 System.Drawing.ImageAnimator.Animate(Image image, EventHandler onFrameChangedHandler)
   在 System.Windows.Forms.PictureBox.Animate(Boolean animate)
   在 System.Windows.Forms.PictureBox.Animate()
   在 System.Windows.Forms.PictureBox.OnVisibleChanged(EventArgs e)
   在 System.Windows.Forms.Control.OnParentVisibleChanged(EventArgs e)
   在 System.Windows.Forms.Control.OnVisibleChanged(EventArgs e)
   在 System.Windows.Forms.ScrollableControl.OnVisibleChanged(EventArgs e)
   在 System.Windows.Forms.Form.OnVisibleChanged(EventArgs e)
   在 System.Windows.Forms.Control.WmShowWindow(Message& m)
   在 System.Windows.Forms.Control.WndProc(Message& m)
   在 System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   在 System.Windows.Forms.ContainerControl.WndProc(Message& m)
   在 System.Windows.Forms.Form.WmShowWindow(Message& m)
   在 System.Windows.Forms.Form.WndProc(Message& m)
   在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
【异常方法】:System.Guid[] get_FrameDimensionsList()
***************************************************************

小徐的工作学习随笔的主页 小徐的工作学习随笔 | 初学一级 | 园豆:183
提问于:2018-04-03 16:44
< >
分享
所有回答(1)
0

应该是参数的问题,需要上传你调用的代码。你在哪里调用代码时抛出异常?

Mad_Rabbit | 园豆:307 (菜鸟二级) | 2018-04-03 17:42

工程的代码量比较大,窗体也比较多,我也不知道那个窗体比较引起的。调用堆栈都有了,还有什么办法知道具体什么位置出错呢?

清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册