以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  GDI+ 中发生一般性错误,没法查清原因  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=196513)

--  作者:yankunhao
--  发布时间:2025/5/7 15:27:00
--  GDI+ 中发生一般性错误,没法查清原因
************** 异常文本 ************** System.Runtime.InteropServices.ExternalException (0x80004005): GDI+ 中发生一般性错误。 在 System.Drawing.Bitmap.FromHicon(IntPtr hicon) 在 System.Drawing.Icon.BmpFrame() 在 System.Drawing.Icon.ToBitmap() 在 Foxtable.o0_0oO__.o 0   O (Object A_0, OwnerDrawCellEventArgs A_1, Boolean A_2, Boolean A_3, Boolean& A_4) 在 Foxtable.o0_0oO__.oOOO___O(Object A_0, OwnerDrawCellEventArgs A_1) 在 C1.Win.C1FlexGrid.C1FlexGridBase.OnOwnerDrawCell(OwnerDrawCellEventArgs e) 在 C1.Win.C1FlexGrid.C1FlexGridBase.#gdb(OwnerDrawCellEventArgs #tQ) 在 C1.Win.C1FlexGrid.C1FlexGridBase.#fdb(Graphics #AA, Int32 #j, Int32 #l, Style #aE, Rectangle #o5, String #gM, String #yxd, Int32 #xEu, Image #Ak, Sparkline #fmh) 在 C1.Win.C1FlexGrid.C1FlexGridBase.DrawCell(Graphics #AA, Int32 #j, Int32 #l, Style #aE, Rectangle #o5, String #gM, String #yxd, Int32 #xEu, Image #Ak, CheckEnum #bdb, Sparkline #fmh) 在 C1.Win.C1FlexGrid.C1FlexGrid.DrawCell(PaintEventArgs e, Int32 row, Int32 col) 在 C1.Win.C1FlexGrid.C1FlexGrid.DrawRow(PaintEventArgs e, Int32 row) 在 C1.Win.C1FlexGrid.C1FlexGridBase.#adb(PaintEventArgs #tQ) 在 C1.Win.C1FlexGrid.C1FlexGridBase.OnPaint(PaintEventArgs e) 在 System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer) 在 System.Windows.Forms.Control.WmPaint(Message& m) 在 System.Windows.Forms.Control.WndProc(Message& m) 在 C1.Win.C1FlexGrid.Util.BaseControls.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)
--  作者:yankunhao
--  发布时间:2025/5/7 15:28:00
--  
GDI+ 中发生一般性错误,没法查清原因,请问可以远程帮忙查一下吗?


--  作者:有点蓝
--  发布时间:2025/5/7 15:46:00
--  
提示是DrawCell事件有问题,可能使用了有问题的图片
--  作者:yankunhao
--  发布时间:2025/5/7 16:36:00
--  
请问什么是DrawCell事件?我好像没有看到这个事件?
--  作者:yankunhao
--  发布时间:2025/5/7 16:38:00
--  
我一个窗口里有用到两个PictureViewer这样的控件来显示图片,请问与这个有关吗


--  作者:有点蓝
--  发布时间:2025/5/7 16:43:00
--  
表属性里的事件:http://www.foxtable.com/webhelp/topics/1445.htm


--  作者:yankunhao
--  发布时间:2025/5/8 8:04:00
--  
我查了下,相关表DrawCell事件都没有设过代码的,为什么说这里发生问题?


--  作者:有点蓝
--  发布时间:2025/5/8 8:42:00
--  
一楼的错误提示里有这个事件。

请把项目发上来看看

--  作者:yankunhao
--  发布时间:2025/5/8 9:26:00
--  
项目有点大2百多M,且有多个数据库的,请问如何发上


--  作者:yankunhao
--  发布时间:2025/5/8 9:28:00
--  
可否给你远程看下?