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.
None.
procedure RegisterObjectCreate(const AObject: TObject); |
procedure RegisterObjectFree(const AObject: TObject); |
procedure RegisterObjectCreate(const AObject: TObject); |
Registers an object has been created.
procedure RegisterObjectFree(const AObject: TObject); |
Unregisters an object has been destroyed.
None.
None.
None.
Ralf Junker -- delphi@zeitungsjunge.de