When developing any sort of application, debugging in inevitable. Sometimes, part of that debugging means trying to figure out why objects haven’t been collected and therefore figuring out what object is referencing the object that has yet to be collected. There’s many reasons why you’d want to find out what object is referencing, like suspected memory “leaks”. With Visual Studio (and MDbg) you can use a tool called SOS (or Son Of Strike). This is included in the .NET installation. To use SOS you first need to enable unmanaged debugging in your project (Project\Properties, Debug tab, check “Enable unmanaged code debugging” in … Continue reading Who’s Referencing Whom?