问题描述
你好
我正在写一个(VS2008,.Net_framework 3.5,VB.net)应用程序
当我关闭一个内存使用量很大的表单时,我检查 Taskmanager
并发现它(表单)没有释放所有内存分配了,我尝试了很多方法,但我认为所有这些都不是正确的,因为问题仍然存在,或者我可能没有抓住正确的方法。 [例如:GC.collect,Me = nothing,Me.dispose,GC.SuppressFinalize(Me)..等;引自网络。 ]
我的问题是:这是一个/正确的免费方式(因为我没有探查器)来检查应用程序的内存使用情况..
如何释放为表格分配的所有内存
非常感谢
Hello
I''m writing a (VS2008,.Net_framework 3.5 ,VB.net) application
When I close a form with a big memory usage , I check the Taskmanager
and found that it ( the form ) didn''t release all the memory that was allocated , I tried many approachs but I think that all of them wasn''t the proper one cause the problem still there , or maybe I didn''t catch the point the right way. [for example : GC.collect , Me=nothing , Me.dispose , GC.SuppressFinalize(Me) .. etc ; quoted from the web. ]
My question is : Is this a/the right free way (cause I don''t have profiler) to check the memory usage of application..
And how can I release all the memory allocated for a form
Thank you very much
这篇关于VB.net表单关闭和内存释放的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!