Microsoft DirectX 8.1 (C++) |
In debug builds, there is a global list of objects that derive from the CBaseObject class. As objects are created, they are added to the list. When they are destroyed, they are removed from the list. To display a list of those objects, call the DbgDumpObjectRegister function.
The constructor method for the CBaseObject base classand most classes derived from itincludes a parameter for the name of the object. Give your objects unique names to identify them. If you use the NAME macro when you declare the name, storage for the name is only allocated in debug builds. In retail builds, the name becomes NULL.