本文介绍了如何释放C#应用程序中的内存?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
hi ..
在我的应用程序中使用了许多变量和XML文件..
尽管完成了文件的工作后,我还是关闭了它.但是当我使用50个以上的文件时,应用程序崩溃了.有什么方法可以通过清除内存来解决此问题.在超出范围之前,对具有该方法的任何变量进行处理.但是,垃圾收集器应确保您的应用程序永远不会因内存不足而崩溃.
hi..
In my application so many variables and XML files are used ..
eventhough after finishing off the work with the file, im closing that.
It works fine with few number of files but when i uses more than 50 files
the application crashes...
So. is there any way to resolve this by clearing the memory.
need help !!!
解决方案
这篇关于如何释放C#应用程序中的内存?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!