Export (0) Print
Expand All

How to: Track Reference Counts 

This topic applies to:

Visual Studio Edition

Visual Basic

C#

C++

J#

Express

No

No

Native

No

Standard

No

No

Native

No

Pro/Team

No

No

Native

No

NoteNote

The dialog boxes and menu commands you see might differ from those described in Help depending on your active settings or edition. To change your settings, choose Import and Export Settings on the Tools menu. For more information, see Visual Studio Settings.

To trace reference counts in ATL

  • Add the following line before you include atlbase.h:

    #define _ATL_DEBUG_INTERFACES

    This statement causes the Output window to show the current reference count for the interface along with the corresponding class name and interface name each time AddRef or Release is called.

See Also

Community Additions

ADD
Show:
© 2014 Microsoft