Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

methodtGCAbstractObject.Create

constructor Create(aMode: tGCCreateAcquiredMode = gcamCreateAcquired);
Use the Create constructor for creating an instance that is directly assigned to an external variable.
* aMode = gcamCreateAcquired: If this mode is used, the Release method MUST be called before the variables goes out of scope, even if the variable is of an interface type
* aMode = gcamFirstAssignment: If this mode is used, the first call to Acquire or _AddRef will not increment the reference count from the initial value of one. If the instance is directly assigned to e.g. an interface, the Release method will not have to be called an extra time