Foxtable(狐表)用户栏目专家坐堂 → [求助] Exception of type 'System.OutOfMemoryException' was thrown.


  共有3065人关注过本帖树形打印复制链接

主题:[求助] Exception of type 'System.OutOfMemoryException' was thrown.

帅哥哟,离线,有人找我吗?
myjht
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:童狐 帖子:254 积分:1634 威望:0 精华:0 注册:2017/4/14 15:58:00
[求助] Exception of type 'System.OutOfMemoryException' was thrown.  发帖心情 Post By:2019/8/23 10:15:00 [显示全部帖子]

错误提示:Exception of type 'System.OutOfMemoryException' was thrown.

描述:窗口,Table,SQLQuery表,Button快速查询代码如下:

With e.Form
    If e.sender.Text <> "请输入关键字" Then
        Dim txb1 As WinForm.DropDownBox = e.Form.Controls("快速查询")
        If txb1.Text = "" Then '如果下拉框没有输入内容,则无需查询
            MessageBox.Show("别闹?啥也没输入,找啥啊!!!", "请输入内容!", MessageBoxButtons.OK, MessageBoxIcon.Question)
        Else
            DataTables("库存查询_工厂库存").loadfilter="STOCKC.CMTEID Like '%" & txb1.Text & "%'"
            DataTables("库存查询_工厂库存").Load '(False)
        End If
    End If
End With
图片点击可在新窗口打开查看此主题相关图片如下:1.png
图片点击可在新窗口打开查看

执行后系统崩溃,报错如图:特此求助如何解决。


 回到顶部
帅哥哟,离线,有人找我吗?
myjht
  2楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:童狐 帖子:254 积分:1634 威望:0 精华:0 注册:2017/4/14 15:58:00
  发帖心情 Post By:2019/8/23 10:35:00 [显示全部帖子]

 Like 应该是很卡,想办法用=,应该能好点,我去试试。

 回到顶部
帅哥哟,离线,有人找我吗?
myjht
  3楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:童狐 帖子:254 积分:1634 威望:0 精华:0 注册:2017/4/14 15:58:00
  发帖心情 Post By:2019/8/23 10:42:00 [显示全部帖子]

有点蓝老师,我符合条件的结果可能只有一两条,也可能0条符合记录,没有很多数据,5条都不到。

 回到顶部
帅哥哟,离线,有人找我吗?
myjht
  4楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:童狐 帖子:254 积分:1634 威望:0 精华:0 注册:2017/4/14 15:58:00
  发帖心情 Post By:2019/8/23 10:48:00 [显示全部帖子]

谢谢有点蓝,按照你的提示检查了SQL语句,我SQL语句有问题,造成了循环,问题解决了,万分感谢!

 回到顶部