views:

269

answers:

2

I'm going through the pain right now of finding memory leaks in my application using WinDbg. Luckily, I've found a few good articles that give a very good step-by-step process of how to do it. Still, it is a fairly painful process. Does VS2010 have any built in features that can ease the burden of finding a memory leak in a Silverlight application? Of course, a memory leak in .NET sounds a bit like a misnomer, but what I intend to do is to find all objects that are still referencing an object that I believe should be garbage collected.

For those that may be interested, here are some good articles on how to get started using WinDbg to find memory leaks in Silverlight:

+2  A: 

A Memory leak in .NET applications isn't a misnomer at all. I've had this problem in applications I've worked on, both Winforms and Webforms.

WinDbg + SOS.dll is painful compared to the ANTS Profiler. Normally I wouldn't tout a product, but if you're working for a company, they will save a lot of money by buying that product. It'll save you time having to look for memory leaks, and developer time is almost always more expensive than purchasing an application.

George Stocker
some other people here at my company have used the ANTS profiler and think highly of it as well.
Andrew Garrison
A: 

Hey,

I don't thing VS 2010 has this; I remember Microsoft did have http://memprofiler.com/ as a memory profiler for finding leaks, and there are other third party tools.

HTH.

Brian
.NET Memory Profiler appears to be third-party, not a Microsoft product. SciTech Software (http://www.scitech.se/) looks like an entirely different Swedish company.
Scott A. Lawrence