求救:请高手回答!GDI+ 中发生一般性错误!
程序是CS+Webservice架构的。程序经常在运行过程中,出现下列情形static class Program
{
/// <summary>
/// 应用程序的主入口点。
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new frmMDI());----------------在此位置抛出异常
}
}
错误信息如下:
未处理 System.Runtime.InteropServices.ExternalException
Message="GDI+ 中发生一般性错误。"
Source="System.Drawing"
ErrorCode=-2147467259
StackTrace:
在 System.Drawing.Image.SelectActiveFrame(FrameDimension dimension, Int32 frameIndex)
在 System.Drawing.ImageAnimator.ImageInfo.UpdateFrame()
在 System.Drawing.ImageAnimator.UpdateFrames()
在 System.Windows.Forms.ButtonBase.OnPaint(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.ButtonBase.WndProc(Message& m)
在 System.Windows.Forms.Button.WndProc(Message& m)
在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
在 System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
在 System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
在 System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
在 System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
在 System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
在 System.Windows.Forms.Application.Run(Form mainForm)
在 SPXNH.Program.Main() 位置 D:\SPYY\CLIENT\SPXNH\Program.cs:行号 18
请高手回答,不胜感激
--------------------编程问答-------------------- 你窗体用了重绘吗? --------------------编程问答-------------------- --------------------编程问答--------------------
请教一楼的,窗体怎么用重绘!谢谢。 --------------------编程问答-------------------- 参考
补充:.NET技术 , C#