TS_Destructor

 (Available in 00 TS Tools(Base) - TS_Tools_Destructor)

Purpose

Destructor

Methods

TSTraceInfo -
RegisterAxit -
UnRegisterAxit -
Axit - Destructor activation, Called by the GC
INIT -
Destroy - CALLBACK: It is adviced to use 'oObject:Axit()'
OnDestroy - CALLBACK: It is adviced to use 'oObject:Destroy()'

Description

The destructor class is instantiated from one of the 'UnRegisterOwner' methods, whenever a 'UnRegisterOwner' returns a 'Destructor' the application must call it's 'Axit' method. The destructor class should not be instantiated by the application code.

Example

METHOD...( )CLASS...
LOCAL oDestructor AS OBJECT
oDestructor:=oSomeClass:UnRegisterOwner( SELF )
IF IsObject( oDestructor ) .AND. oDestructor<>NULL_OBJECT
   oDestructor:Axit( )
   oDestructor:=NULL_OBJECT
END
RETURN...

Source

CLASS TS_Destructor
   TSTrace Data
   DECLARE METHOD TSTraceInfo