By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,534 Members | 2,223 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,534 IT Pros & Developers. It's quick & easy.

Memory leak detection

P: n/a
dh
Will GC.GetTotalMemory(true) reliably tell if a console app could have a
memory leak, given the nature of memory management of GC in .NET? Like
calling it two times, each at the beginning and right before exiting from the
app?

If not, can somebody shows me the steps of using CLRProfiler for .Net to
check memory leak of the app?

(Btw, I used Performance but it doesn't show memory leak. However I'm still
suspicious of it.)

Thanks!
Nov 28 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hello, dh!

Memory leak is an abstrack notion.
IMO to detect if application has mem leak you have to analyze its memory management
behavior.

Is it freeing memory?

Have a look at the following links
( http://www.thescripts.com/forum/thread336255.html )
( http://en.wikipedia.org/wiki/Memory_leak )

dWill GC.GetTotalMemory(true) reliably tell if a console app could
dhave a
dmemory leak, given the nature of memory management of GC in .NET?
dLike
dcalling it two times, each at the beginning and right before exiting
dfrom the
dapp?

dIf not, can somebody shows me the steps of using CLRProfiler for .Net
dto
dcheck memory leak of the app?

d(Btw, I used Performance but it doesn't show memory leak. However I'm
dstill
dsuspicious of it.)

dThanks!



--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com
Nov 28 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.