This topic has been archived. It cannot be replied.
-
工作学习 / 学科技术讨论 / does anyone know how to test and track memory leak of C# application? Ihave an application in which a instance is added and deleted repeatly and eventually it is out of memory. Is there any way to know that a instance is completely deleted and there is no other reference used by other instance?
-webearth(加拿大农民);
2008-7-25
{225}
(#4579349@0)
-
.net framwork本身有memory leak,.net也能自己管理内存,所以普通内存不用管,你要专注也windows资源,例如GDI objects,小心那些windows API,
-googlebot(bot);
2008-7-25
(#4579616@0)
-
Check this and see if post help you resolve a problem
-mfcguy();
2008-7-25
(#4579678@0)
-
use .Net Memory Profiler tool. it is a pretty cool tool.
-spruce(toastmaster);
2008-7-26
(#4580536@0)
-
the following type of object will leak: 1) image, e.g. form, graph 2) file 3) com object
-spruce(toastmaster);
2008-7-26
(#4580537@0)
-
no wonder since those are all unmanaged resource
-mfcguy();
2008-7-26
(#4580713@0)
-
You can use SOS Debugging Extension (SOS.dll) in Visual Studio.
-deep_blue(BLUE);
2008-7-27
{623}
(#4581314@0)