系统时间长了报错

qiangudidu 2008-05-14 10:43:44
在一个开发的系统中,如果长时间不运行它,即把它最小化,当再次激活它时,系统就会报错
具体的错误为:
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()"

另外,当时间更长些,系统会报“内存不足”。

我想是不是系统没有把一些东西给及时释放掉。但总是找不到在哪里 。

忘大家能给小弟提些建议


...全文
76 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
qiangudidu 2008-05-19
  • 打赏
  • 举报
回复
各位有没有会的?
指间的风 2008-05-14
  • 打赏
  • 举报
回复
vb 不会

16,717

社区成员

发帖
与我相关
我的任务
社区描述
VB技术相关讨论,主要为经典vb,即VB6.0
社区管理员
  • VB.NET
  • 水哥阿乐
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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