系统时间长了报错
在一个开发的系统中,如果长时间不运行它,即把它最小化,当再次激活它时,系统就会报错
具体的错误为:
system.argumentexception "参数无效。"
message "参数无效。"
source system.drawing
stacktrace:如下
在 System.Drawing.Bitmap..ctor(Int32 width, Int32 height, PixelFormat format)\r\n
在 System.Drawing.Bitmap..ctor(Int32 width, Int32 height)\r\n
在 System.Drawing.Icon.ToBitmap()\r\n
在 System.Windows.Forms.ThreadExceptionDialog..ctor(Exception t)\r\n
在 System.Windows.Forms.Application.ThreadContext.OnThreadException(Exception t)\r\n
在 System.Windows.Forms.Control.WndProcException(Exception e)\r\n
在 System.Windows.Forms.Control.ControlNativeWindow.OnThreadException(Exception e)\r\n
在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)\r\n
在 System.Windows.Forms.NativeWindow.DefWndProc(Message& m)\r\n
在 System.Windows.Forms.NativeWindow.WndProc(Message& m)\r\n
在 DevComponents.DotNetBar.15.WndProc(Message& m)\r\n
在 System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)\r\n
在 System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
在System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)\r\n
在 System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)\r\n
在 System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)\r\n
在 System.Windows.Forms.Application.Run(ApplicationContext context)\r\n
在 Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()\r\n
在 Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()\r\n
在 Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)\r\n
在 ZHFGIS_RealEstate.My.MyApplication.Main(String[] Args) 位置 17d14f5c-a337-4978-8281-53493378c1071.vb:行号 81\r\n
在 System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)\r\n
在 System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)\r\n
在 Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()\r\n
在 System.Threading.ThreadHelper.ThreadStart_Context(Object state)\r\n
在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)\r\n
在 System.Threading.ThreadHelper.ThreadStart()"
另外,当时间更长些,系统会报“内存不足”。
我想是不是系统没有把一些东西给及时释放掉。但总是找不到在哪里 。
忘大家能给小弟提些建议