Units
Classes, Interfaces, Objects
Types
Variables
Constants
Functions, Procedures
Identifiers

Unit rjCheckFree

Description

rjCheckFree keeps track of the creation and destruction of objects. It is a nice debugging tool to ensure that all objects created were also freed by the application.

To register the creation of an object, incldue a call to RegisterObjectCreate in its constructor. Then, in its destructor, call RegisterObjectFree to unregister the object.

In its finalization section, rjCheckFree will check if all objects registered were also freed by the application. If this is the case, nothing happens. Otherwise, a warning will be issued.

Classes, interfaces and objects

None.

Functions and procedures

Overview

procedure RegisterObjectCreate(const AObject: TObject);
procedure RegisterObjectFree(const AObject: TObject);

Description

procedure RegisterObjectCreate(const AObject: TObject);

Registers an object has been created.

procedure RegisterObjectFree(const AObject: TObject);

Unregisters an object has been destroyed.

Types

None.

Constants

None.

Variables

None.

Author

Ralf Junker -- delphi@zeitungsjunge.de


rjExContainer Library Version 0.2.
Copyright Ralf Junker 2000-2001.
http://www.zeitungsjunge.de/delphi/.