Debugging unmanaged memory usage in .net app

Hi Experts - I have a leak in unmanaged memory (private bytes continue to go up over time while .net # bytes in all heaps is very low and constant).  I can cause the private bytes to rise by calling a method which itself calls many different methods.  I can't find a good approach to debug this.  It seems like I would simply need to inspect the memory beforehand and then after and see what the difference is and what component is causing the difference.

I've tried windbg and debugdiag but can't get them to do what i want.  Please help!
LVL 1
sfun28Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jason EvansSenior Software DeveloperCommented:
Hi sfun28.

I'm not sure exactly what to suggest, but you might want to check out the following blog entries:

http://blogs.msdn.com/tess/archive/2008/03/17/net-debugging-demos-lab-6-memory-leak-review.aspx
http://blogs.msdn.com/tess/archive/2008/04/03/net-debugging-demos-lab-7-memory-leak-review.aspx

The author of the above blog is an ASP.NET escalation engineer and is a VERY knowledgable induvidual. You can learn a lot from this person's site. Hopefully there is enough information on this site, and these blog entries, to help you debug your issue.

Hope this helps.
Jas.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
sfun28Author Commented:
the first link is the best resource i've seen so far, but that said it covers a very narrow scoped case.  I've spent hours researching this and i have yet to find a good article on this topic.

closing out this thread.
0
sfun28Author Commented:
Thanks for helping.  per my comment, there doesn't seem to be a great resource for this
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.