0
你們遇到過類似的東西嗎? 異常類型:System.ComponentModel.Win32Exception 異常消息:操作成功完成。 異常堆棧跟蹤:.net應用程序中的圖形異常(C#)
------------------------
at System.Drawing.BufferedGraphicsContext.CreateCompatibleDIB(IntPtr hdc, IntPtr hpal, Int32 ulWidth, Int32 ulHeight, IntPtr& ppvBits)
at System.Drawing.BufferedGraphicsContext.CreateBuffer(IntPtr src, Int32 offsetX, Int32 offsetY, Int32 width, Int32 height)
at System.Drawing.BufferedGraphicsContext.AllocBuffer(Graphics targetGraphics, IntPtr targetDC, Rectangle targetRectangle)
at System.Drawing.BufferedGraphicsContext.AllocBufferInTempManager(Graphics targetGraphics, IntPtr targetDC, Rectangle targetRectangle)
at System.Drawing.BufferedGraphicsContext.Allocate(IntPtr targetDC, Rectangle targetRectangle)
at System.Windows.Forms.Control.WmPaint(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at DevExpress.XtraEditors.Container.EditorContainer.WndProc(Message& m)
at DevExpress.XtraGrid.GridControl.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
到處在存在一個圖形對象使用的應用程序,它被用於使用如此設置被啓用。
謝謝。
你想做什麼?一些源代碼會很有用。 – 2010-11-01 09:18:42
基本上它是一個大型的winforms應用程序,並且此錯誤在生產中不時出現。因爲這不能在測試中複製,所以我想知道是否有人遇到過這種情況,也許是什麼解決方案,或者如果你不知道它從哪裏跳出來,你將如何隔離這樣的事情。 – Elena 2010-11-01 09:48:30
你對某些圖形使用後臺線程嗎?即畫或準備一些東西? – 2010-11-01 11:10:46