本文介绍了问题:在vb.net中打开表单时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用3层开发了一个VB.Net项目.表格打开没有任何问题.考虑以下情况.我打开一个窗体并立即关闭,然后打开另一个窗体并关闭,然后打开另一个窗体并关闭,依此类推.当我这样做直到一段时间时,表格会顺利打开.一段时间后,表单打开非常缓慢,应用程序也变得非常缓慢,有时会发生内存不足异常.

我已经以各种形式和类实现了IDisposable.我已经处置了所有非托管对象.

如何解决我的问题?

I have developed a VB.Net project using 3 tier. Form opened without any problem. Consider the following situation. I open a form and close immediately and then I open another form and close and I open another form and close and so on. When I am doing like this up to some time the forms are opened smoothly. after some time the forms opened very slow and also application becomes very slow and sometimes out of memory exception occurred.

I have implemented IDisposable in all forms and classes. I have dispose all unmanaged objects.

How to solve my problem?

推荐答案




这篇关于问题:在vb.net中打开表单时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-14 15:49