System.InvalidOperationException: 缓冲操作当前正在进行中,无法释放 BufferedGraphicsContext。

System.InvalidOperationException: 缓冲操作当前正在进行中,无法释放 BufferedGraphicsContext。

环境:VS 2005,FX 2.0,XP

在查找内存泄漏时,蹦出此错误,正在找原因。

哪位同仁如果能提供线索,多谢了。

系统异常:
System.InvalidOperationException: 缓冲操作当前正在进行中,无法释放 BufferedGraphicsContext。
   在 System.Drawing.BufferedGraphicsContext.Dispose(Boolean disposing)
   在 System.Drawing.BufferedGraphicsContext.Dispose()
   在 System.Drawing.BufferedGraphicsContext.AllocBufferInTempManager(Graphics targetGraphics, IntPtr targetDC, Rectangle targetRectangle)
   在 System.Drawing.BufferedGraphicsContext.Allocate(IntPtr targetDC, Rectangle targetRectangle)
   在 System.Windows.Forms.Control.WmPaint(Message& m)
   在 System.Windows.Forms.Control.WndProc(Message& m)
   在 System.Windows.Forms.ScrollableControl.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)

posted @ 2009-06-22 10:09  winzheng  阅读(2145)  评论(2编辑  收藏  举报