In the PSDK there is a macro that prints to the debugger addref/release of all objects in the running program, the macro starts of with _ATL_INTERFACE or something like that. You have to define it in the stdafx.h this is for ATL only though.
-Matrice64