Did you know, that a GC can be forced in Visual Studio .NET?
Two options exists for it, depending on whether you changed the default key-bindings. If you press 'Ctrl+Alt+Shift+F12' with the built-in key-binding, it executes the Tools.ForceGC command. If this binding is unavailable, you still have the option to run it using nothing else than the good old find window. Press Ctrl+/ or click into the quick find window, and enter '>Tools.ForceGC'.
Dec 16 2010, 12:55 PM