[Classes] [Prev] [Next] [Methods]

Mem

Important Notice
Heritage
Description
Methods

Mem


Important Notice

While this file ships with XVT-Power++, you should not use it as it is. Specifically, do not attempt to debug the XVT-Power++ library with MEM_DEBUG set to TRUE. However, you can look through this file to get an idea of how to implement the global operators new and delete.


Heritage

Superclass: None

Subclasses: None


Description

Currently Mem is a utility file, not a class. This file provides debugging utility functions that are enabled when the MEM_DEBUG option is used.

The debugging utility counts the number of references to newly created and deleted objects. At any point, users can see how many memory objects have been deleted. In addition, Mem keeps a list of the places, the file, and the line, where the memory was allocated. When users finish running the program, they can print this list.


Methods

void * operator new(size_t sz, char* file, int line);
void operator delete(void *p);
void DumpMemory(void);
void CleanMemory(void);


[Classes] [Prev] [Next] [Methods]

support@xvt.com


Visit our online help desk for tech support

Copyright © 2009, Providence Software Solutions Inc. All rights reserved.