Loading...
 

KillObject

KillObject

KillObject

Stack
Stack Position Description
Stack(In) Top Object
Stack(Out) Top -

Deletes a transient or a persistent object from the memory or from the database. If the object to be deleted was managed by the GarbageCollection, KillObject will unregister it there, so that it is not deleted twice. After the statement KillObject no variable may refer to the object anymore, because this will also cause a crash when the GarbageCollection runs later. In general, the statement DeleteObject is safer and is preferable to KillObject .

Note: This instruction is forbidden for persistent objects in an ordinary application!
Objects may only be deleted logically with DeleteObject.
For more information on physically removing objects from the database, click here.