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)

相关文章:

  • 2021-05-27
  • 2022-12-23
  • 2022-12-23
  • 2021-07-31
  • 2022-12-23
  • 2022-01-28
  • 2022-12-23
  • 2021-10-30
猜你喜欢
  • 2022-12-23
  • 2021-06-30
  • 2022-12-23
  • 2022-12-23
  • 2021-05-24
  • 2022-01-01
  • 2021-10-10
相关资源
相似解决方案