CreateTransObject

CreateTransObject(CX_xxxxx)

Parameter: class identifier  

Stack
Stack   Description
Stack(In)   -
Stack(Out)   recently generated (transient) object
 

CreateTransObject

Stack
Stack   Description
Stack(In)   class identifier
Stack(Out)   recently generated (transient) object

An object is generated in transient memory (heap) and a class default constructor is called. If no variable or stack entry refers to the transient object, InstantView®  "thinks" this object is no longer needed and deletes it automatically with the next garbage collection. InstantView® does not check, whether this object referenced by another one.
In a special test mode, InstantView® can discover access to a deleted object (see statement KeepGarbage). In such a case, it is necessary to either assign the referenced object to a variable or to use the following variant: 

 

CreateTransObject(CX_xxxxx, KEEP)

Parameter:  class identifier, flag KEEP

Stack
Stack   Description
Stack(In)   -
Stack(Out)   recently generated (transient) object

 

CreateTransObject(, KEEP)

Stack
Stack   Description
Stack(In)   class identifier
Stack(Out)   recently generated (transient) object

An object is generated in transient memory (heap) (, and the class default constructor is called). This object exists until it is deleted via DeleteObject.