本文介绍了该参数在System.Drawing.Bitmap..ctor(的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个Windows应用程序,可以加载许多图像.最近我遇到了以下异常.我已经检查过我的代码在任何地方都没有使用ICON,而且每次仅在应用程序运行了至少半小时左右后,我才无法重新创建该错误.有身体可以帮忙吗?
I have an windows application which loads many images.recently i have been getting the below exception. I have checked my code am not using ICON anywhere also i am unable to recreate the error evertime it happens only after the application has run for atleast half hour or so. Can any body help?
at System.Drawing.Bitmap..ctor(Int32 width, Int32 height, PixelFormat format)
at System.Drawing.Bitmap..ctor(Int32 width, Int32 height)
at System.Drawing.Icon.ToBitmap()
at System.Windows.Forms.ThreadExceptionDialog..ctor(Exception t)
at System.Windows.Forms.Application.ThreadContext.OnThreadException(Exception t)
at System.Windows.Forms.Control.WndProcException(Exception e)
at System.Windows.Forms.Control.ControlNativeWindow.OnThreadException(Exception e)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at IZZone.Program.Main()
推荐答案
这篇关于该参数在System.Drawing.Bitmap..ctor(的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!