Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

more::diag::checkmem Struct Reference

Used to force earlier activation of the allocation checker. More...

#include <debug.h>

List of all members.

Public Methods

Static Public Methods


Detailed Description

Used to force earlier activation of the allocation checker.

If static destructors deallocate memory with MORE_FREE, you may get bogus reports of unallocated memory. To fix this try to make a static instance of this class in the source file to be checked. There is no standard way to ensure that the checker is initialized before all other static initializers, so you may have to expreimet with placing it before or after in the same source file, or even name the variable starting with "AA" or "zz". Wrap the declaration in ifdef MORE_CHECK_ALLOCATIONS for zero overhead when not debugging.


Constructor & Destructor Documentation

more::diag::checkmem::checkmem   [inline]
 


Member Function Documentation

void* more::diag::checkmem::alloc std::size_t   ,
char const *    = 0,
int    = 0
[static]
 

void more::diag::checkmem::finalize   [static]
 

void more::diag::checkmem::free void *   ,
char const *    = 0,
int    = 0
[static]
 

void more::diag::checkmem::init   [static]
 


The documentation for this struct was generated from the following file:
Generated on Sat Sep 7 19:12:04 2002 for more with Doxygen 1.2.13.1. Doxygen 1.2.13.1 is written and copyright 1997-2002 by Dimitri van Heesch.