USER对象达到10000个限制 [英] USER objects reach the 10000 limit

查看:76
本文介绍了USER对象达到10000个限制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在开发一个在屏幕上动态构建嵌套用户控件的应用程序.

我在页面上打开了各种标签控件,每个标签控件都代表我们要验证的文件.每个选项卡都有我们要验证的表的列表以及验证的结果.我不知道要在页面上创建多少个标签,因为这取决于我们要验证的文件数.

当USER对象达到10000个限制时,程序崩溃.
有没有办法减少正在创建的用户对象句柄?

在此先感谢

Hi,

I am working on an application that dynamically builds nested user controls on the screen.

I have various tab controls that open on a page each representing a file that we are trying to validate. Each tab has a list of the tables that we are trying to validate and the results of the validation. I have no idea how many tabs will be created on the page as it depends how many files we will be validating.

The program crashes when the USER objects reach the 10000 limit.
Is there a way to reduce the user object handles that are getting created?

Thanks in advance

推荐答案

您的代码要么无限制地创建它们,要么在完成它们后不释放它们.

无论哪种情况,如果没有看到创建控件的代码以及对其处理文件的描述,我们都无法为您提供任何有用的信息.

例如,如果您正在为文件的每一行创建一个控件实例,并且文件中包含20,000行,那么您将遇到严重的设计问题.
Your code is either creating them unbounded or you''re not freeing them when you''re done with them.

In either case, we can''t really give you anything useful without seeing the code that''s creating the controls and a description of what the files it''s processing looks like.

For example, if you''re creating a control instance for every line of a file and the file has 20,000 lines in it, you''ve got a serious design problem.


这篇关于USER对象达到10000个限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆