以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  这个错误又是啥原因  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=25333)

--  作者:Fotable
--  发布时间:2012/11/6 20:18:00
--  这个错误又是啥原因
.NET Framework 版本:2.0.50727.3634
Foxtable 版本:2012.10.22.1
错误所在事件:表,明细,DataColChanged
详细错误信息:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: Illegal characters in path.
   at System.ComponentModel.ReflectPropertyDescriptor.SetValue(Object component, Object value)
   at System.Windows.Forms.Binding.SetPropValue(Object value)
   at System.Windows.Forms.Binding.PushData(Boolean force)
   at System.Windows.Forms.Binding.UpdateIsBinding()
   at System.Windows.Forms.Binding.CheckBinding()
   at System.Windows.Forms.Binding.SetListManager(BindingManagerBase bindingManagerBase)
   at System.Windows.Forms.ListManagerBindingsCollection.AddCore(Binding dataBinding)
   at System.Windows.Forms.BindingsCollection.Add(Binding binding)
   at System.Windows.Forms.BindingContext.UpdateBinding(BindingContext newBindingContext, Binding binding)
   at System.Windows.Forms.Binding.SetBindableComponent(IBindableComponent value)
   at System.Windows.Forms.ControlBindingsCollection.AddCore(Binding dataBinding)
   at System.Windows.Forms.BindingsCollection.Add(Binding binding)
   at System.Windows.Forms.ControlBindingsCollection.Add(Binding binding)
   at Foxtable.WinForm.PictureBox.set_BindingField(String Ol1Ol)
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
   at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.Reflection.RuntimePropertyInfo.SetValue(Object obj, Object value, BindingFlags invokeAttr, Binder binder, Object[] index, CultureInfo culture)
   at System.Reflection.RuntimePropertyInfo.SetValue(Object obj, Object value, Object[] index)
   at Foxtable.O011O1ll1l0O0O.O1100OOO0111OOOll1l100lO01ll(Object O1O, String O1lOlO0110l1Ol, Char Ol00Ol0l0)
   at Foxtable.WinForm.Form.O0000Oll11OO(ControlCollection OOl1100l, DataRow OO0l001O0, Int32 OO1l)
   at Foxtable.WinForm.Form.O0000Oll11OO(ControlCollection OOl1100l, DataRow OO0l001O0, Int32 OO1l)
   at Foxtable.WinForm.Form.Create()
   at Foxtable.WinForm.Form.OO10(O0lOOO11OO O10OOO00, Int32 O, Int32 O)
   at Foxtable.WinForm.Form.Open(Int32 O, Int32 O)
   at UserCode.DataColChanged(DataColEventArgs e)
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
   at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at Foxtable.DataTable.O0O01O0l1lO01Ol01000lOOl(Object O1010O, DataColumnChangeEventArgs O)

--  作者:Fotable
--  发布时间:2012/11/6 20:21:00
--  

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
   at System.Collections.ArrayList.get_Item(Int32 index)
   at C1.Win.C1FlexGrid.ColumnCollection.get_Item(Int32 index)
   at C1.Win.C1FlexGrid.C1FlexGrid.AutoSizeCols(Graphics g, Int32 row1, Int32 col1, Int32 row2, Int32 col2, Int32 extra, AutoSizeFlags flags)
   at C1.Win.C1FlexGrid.C1FlexGridBase.AutoSizeCols(Int32 topRow, Int32 leftCol, Int32 bottomRow, Int32 rightCol, Int32 extraSpace, AutoSizeFlags flags)
   at C1.Win.C1FlexGrid.C1FlexGridBase.AutoSizeCol(Int32 col, Int32 extraSpace)
   at C1.Win.C1FlexGrid.C1FlexGridBase.AutoSizeCol(Int32 col)
   at ??.??.?(MouseEventArgs e)
   at C1.Win.C1FlexGrid.C1FlexGridBase.OnDoubleClick(EventArgs e)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at C1.Win.C1FlexGrid.Util.BaseControls.ScrollableControl.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)

 


--  作者:Fotable
--  发布时间:2012/11/6 20:22:00
--  
我觉得这是一个什么系统bug,我无论如何调试,想进了所有方面 都没有办法找到错误
--  作者:狐狸爸爸
--  发布时间:2012/11/6 20:27:00
--  

检查明细表的DataCoChanged事件。

先用下面的方法找出出错的代码:

http://www.foxtable.com/help/topics/1485.htm

 

然后分析原因,实在搞不定,就做个例子发上来。


--  作者:Fotable
--  发布时间:2012/11/6 20:43:00
--  
我把 当前表的所有事件带都清空了 都会有错误
--  作者:lin_hailun
--  发布时间:2012/11/7 0:08:00
--  
 楼主,最近频频报错……
[此贴子已经被作者于2012-11-7 0:08:50编辑过]

--  作者:程兴刚
--  发布时间:2012/11/7 0:37:00
--  

一般是判断不严谨所致!