Tools
refcatch.txt
Associated article: COM Object Reference Counting
Tags: Tools
Published source code accompanying the article by Noam Cohen in which he presents RefCatcher, a tool that tracks the number of AddRef/Release calls and reports unbalanced reference counts. Also see REFCATCH.ZIP.
COM Object Reference Counting
by Noam Cohen
Listing One
// code snippet from CUnknown.h from "Inside COM" by Dale Rogerson,
// Microsoft Press.
// Modified by Noam Cohen.
///////////////////////////////////////////////////////////
class CUnknown : public INondelegatingUnknown
{
public:
// Nondelegating IUnknown implementation
// ...
protected:
// ...
// helper functions to ...


