class PMemoryHeap |
Memory heap chacking class.
![]() | Allocate ( size_t nSize, const char* file, int line, const char* className ) Allocate a memory block. |
![]() | Allocate ( size_t count, size_t iSize, const char* file, int line ) Allocate a memory block. |
![]() | Reallocate ( void* ptr, size_t nSize, const char* file, int line ) Change the size of an allocated memory block. |
![]() | Deallocate ( void* ptr, const char* className ) Free a memory block. |
![]() | Validate ( void* ptr, const char* className, ostream* error ) Validate the memory pointer. |
![]() | ValidateHeap ( ostream* error = NULL ) Validate all objects in memory. |
![]() | SetIgnoreAllocations ( BOOL ignore ) Ignore/Monitor allocations. |
![]() | DumpStatistics () Get memory check system statistics. |
![]() | DumpStatistics (ostream & strm) Get memory check system statistics. |
![]() | DumpObjectsSince ( DWORD objectNumber ) Dump allocated objects. |
![]() | DumpObjectsSince ( DWORD objectNumber, ostream & strm ) Dump allocated objects. |
![]() | SetAllocationBreakpoint ( DWORD point ) Set break point allocation number. |
![]() | Validation Validation result |
![]() | PMemoryHeap () Initialise the memory checking subsystem |
Memory heap chacking class. This class implements the memory heap checking and validation functions. It maintains lists of allocated block so that memory leaks can be detected. It also initialises memory on allocation and deallocation to help catch errors involving the use of dangling pointers.
Output is to the default stream.
Alphabetic index HTML hierarchy of classes or Java