Notes from debugging a managed memory leak

Recently, I spent a while digging into a managed memory leak. This is a pretty well-worn blog topic, but I figured I would add my two cents to it anyway, as I found a few things that I didn’t notice in the existing blogs. First, Rico wrote up the basic approach back in 2004, so…

2

Tracing calls to QueryInterface on a managed object

To date, one difficulty with implementing COM interfaces in managed code is that until now there has been know way to debug into QueryInterface. With CLR v4, its now possible to modify your object to trace calls to QueryInterface using the new ICusomQueryInterface interface (see MSDN). Example:    [ComVisible(true)]     sealed class MyObject : IMyInterface, ICustomQueryInterface…

0

What to do with a machine that doesn’t support Hyper-V…

In my little corner of the world, during the last year (give or take) Hyper-V went from something that a few people were playing with to something that every single person couldn’t live without. The huge benefit to us is the ‘snapshot’ feature, which allows us to instantaneously get a test machine back to clean…

1

Disabling script debugging in VS 2008 + IE8

Visual Studio 2008 shipped with a feature to automatically enable script debugging when starting IE8 from Visual Studio. In other words, if you are using VS 2008 and IE8, there is no longer a need to tweak IE options to debug your site. However, this feature unfortunately created a problem which we didn’t notice before…

8

Script debugging broken in VS 2005 after installing IE8

[Note: This post has been updated with new information] There is currently an issue in VS 2005 after you install IE8 where script debugging is broken. If you are using VS 2008, this will not be a problem. Brad Sullivan posted the work around in the debugger forum. Here is what he said: IE 8 has…

1