-- 作者:qwz405
-- 发布时间:2015/7/17 21:52:00
-- 程序运行报错
使用窗口录入物料子表,新增多条数据并保存,窗口无法关闭,直接关闭程序弹出图片所示错误。 是否能判断,问题出在哪里?
“工序编码”、“工序名称”、“作业内容”由父表生成。 “品名”、“规格”跨表引用其它表数据,“料号”根据“品名”、“规格”自动生成。 “项次”使用了输入掩码。
别的也没比较特殊设置。
“新增”按键代码: If Tables("作业标准").Current("审核") = True Then MessageBox.Show("已审核的作业标准,不能再添加物料.","提示",MessageBoxButtons.OK) Else Tables("作业标准.标准物料").save Tables("作业标准.标准物料").AddNew() Forms("标准物料").open() End If
错误都在“保存”后产生,我使用了下面3个代码,都报错。 DataTables("标准物料").Save() Tables("标准物料").Save() Tables("作业标准.标准物料").Save()
此主题相关图片如下:错误.jpg

有关调用实时(JIT)调试而不是此对话框的详细信息, 请参见此消息的结尾。
************** 异常文本 ************** System.Reflection.TargetInvocationException: 对象“Foxtable.O OO o ”上的属性访问器“Value”发
生以下异常: “ (值对于无符号的字节太大或太小。)” ---> C1.Win.C1Input.ValidationException: (值对于
无符号的字节太大或太小。) 在 C1.Win.C1Input.C1TextBox.get_Value() --- 内部异常堆栈跟踪的结尾 --- 在 System.ComponentModel.ReflectPropertyDescriptor.GetValue(Object component) 在 C1.Win.C1Input.at.a(Object A_0) 在 System.Windows.Forms.Binding.GetPropValue() 在 System.Windows.Forms.Binding.PullData(Boolean reformat, Boolean force) 在 System.Windows.Forms.Binding.WriteValue() 在 Foxtable.WinForm.Form.O0___OO_(Object A_0, EventArgs A_1) 在 System.Windows.Forms.Form.OnDeactivate(EventArgs e) 在 System.Windows.Forms.Form.set_Active(Boolean value) 在 System.Windows.Forms.Form.WmActivate(Message& m) 在 System.Windows.Forms.Form.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)
************** 已加载的程序集 **************
*** *** ----------------------------------------
************** JIT 调试 ************** 要启用实时(JIT)调试, 该应用程序或计算机的 .config 文件(machine.config)的 system.windows.forms 节中必须设置 jitDebugging 值。 编译应用程序时还必须启用 调试。
例如:
<configuration> <system.windows.forms jitDebugging="true" /> </configuration>
启用 JIT 调试后,任何无法处理的异常 都将被发送到在此计算机上注册的 JIT 调试器, 而不是由此对话框处理。
[此贴子已经被作者于2015/7/17 21:53:52编辑过]
|