VB.Net应用程序中的内存泄漏 [英] Memory Leaks in VB.Net Application

查看:76
本文介绍了VB.Net应用程序中的内存泄漏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在VB.Net应用程序上.

一段时间后,我的应用程序占用了太多内存.

当我签入任务栏时,它超过了200,000 K,并且在我的应用程序处于空闲状态时不断增加.

有什么方法可以检查泄漏在哪里或内存泄漏的原因是什么?

谢谢

Hi,

I am working on VB.Net application.

My Application is taking too much memory after some time.

When I check in taskbar it goes beyond 200,000 K and increasing while my application is in idle state.

Is there any way I can check where is leakage is or what is the cause of the memory leaks?

Thanks

推荐答案

查看这些文章

.NET中的内存泄漏检测 [最佳做法5:-检测.NET应用程序内存泄漏 [查找未处理的对象 [
Check these articles

Memory Leak Detection in .NET[^]
Best Practices No 5: - Detecting .NET application memory leaks[^]
Finding Undisposed Objects[^]


http ://memprofiler.com/ [ ^ ]
http://www.red-gate.com/products/dotnet-development/ants -memory-profiler/ [ ^ ]

使用ANTS Memory Profiler分析.NET应用程序的内存使用情况 [
http://memprofiler.com/[^]
http://www.red-gate.com/products/dotnet-development/ants-memory-profiler/[^]

Profiling the memory usage of a .NET application with ANTS Memory Profiler[^]


令人惊讶.从来没有人说过不要使用TaskManager查看应用程序的内存使用情况.这表明您为应用程序保留了多少内存,而不是实际使用了多少内存.

.NET应用程序在某种程度上是虚拟的环境中运行,在该环境中,机器(.NET CLR)维护应用程序执行环境的状态,处理内存管理,互操作性功能,...

如果您了解所查看数字的来源和含义,将会有所帮助.内存号并不像您认为的那样直接.
Surprising. Noone ever said do NOT use TaskManager to see what the memory usage of your app is. That is showing you how much memory is RESERVED for your app, not how much it''s actually using.

.NET applications run in a somewhat virtual environment, where a machine (the .NET CLR) maintains the state of your applications execution environment, handling memory management, interop functionality, ...

It would help if you understood the source of and the meaning of the numbers you were looking at. The memory numbers are not as straight forward as you seem to think they are.


这篇关于VB.Net应用程序中的内存泄漏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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