以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.net/bbs/index.asp)
--  专家坐堂  (http://foxtable.net/bbs/list.asp?boardid=2)
----  Exception has been thrown by the target of an invocation.  (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=169813)

--  作者:ganlan
--  发布时间:2021/7/1 12:06:00
--  Exception has been thrown by the target of an invocation.
重置列的时候提示这个错误:Exception has been thrown by the target of an invocation.帮忙看一下是什么原因,谢谢啦
If e.DataCol.Name = "出单号" Then 
      If e.NewValue Is Nothing Then 
         e.DataRow("付款金额") = Nothing 
               Else 
               Dim aa As DataRow 
               aa = DataTables("流水").Find("[出单号] = \'" & e.NewValue & "\'")
               If aa IsNot Nothing Then 
               e.DataRow("付款金额") =  "1"
               Else
               e.DataRow("付款金额")= "-1000"
End If
End If
End If
[此贴子已经被作者于2021/7/1 12:06:10编辑过]

--  作者:有点蓝
--  发布时间:2021/7/1 12:08:00
--  
调试看看是哪一行出错
试试
               e.DataRow("付款金额") =  1
               Else
               e.DataRow("付款金额")= -1000

--  作者:ganlan
--  发布时间:2021/7/1 13:03:00
--  
External component has thrown an exception.我现在想导入一个表,就会提示这个,之前导入数据的时候出现出错,整个菜单打了一个大的叉叉,然后下面的数据也变了叉叉
--  作者:有点蓝
--  发布时间:2021/7/1 13:32:00
--  
注释掉1楼代码,再导入有没有问题?
--  作者:ganlan
--  发布时间:2021/7/1 13:39:00
--  
我把这个表删了,重新导入,在等待导入的时候,提示这个出错.NET Framework 版本:4.0.30319.42000
Foxtable 版本:2021.5.29.1
错误所在事件:
详细错误信息:
Exception of type \'System.OutOfMemoryException\' was thrown.

--  作者:ganlan
--  发布时间:2021/7/1 13:40:00
--  
The connection was not closed. The connection\'s current state is open.

图片点击可在新窗口打开查看此主题相关图片如下:360截图20210701134156628.jpg
图片点击可在新窗口打开查看

[此贴子已经被作者于2021/7/1 13:44:35编辑过]

--  作者:有点蓝
--  发布时间:2021/7/1 13:57:00
--  
一次导入的数据太多,内存溢出。

大数据导入可以参考:http://www.foxtable.com/bbs/dispbbs.asp?BoardID=2&ID=100317&replyID=&skin=1

--  作者:ganlan
--  发布时间:2021/7/1 16:47:00
--  
Exception has been thrown by the target of an invocation.这个提示是啥意思呀,导入数据的时候提示的
--  作者:有点蓝
--  发布时间:2021/7/1 16:58:00
--  
中文意思就是‘调用的目标引发了异常’,应该就是内存溢出导致的
--  作者:ganlan
--  发布时间:2021/7/1 17:11:00
--  
之前的记录好像清楚不了了,我数量少也是提示这样了