[Overview][Classes][Procedures and functions][Index] |
Copies and releases the specified reference counted object, and sets the copy to Nil.
Source position: lazclasses.pas line 95
procedure NilThenReleaseRef( |
var ARefCountedObject |
); |
ARefCountedObject |
|
TRefCountedObject object instance examined and updated in the routine. |
No actions are performed in the method when ARefCountedObject has not been assigned, or has already been released. ReleaseRefAndNil calls the ReleaseReference method for the object instance, and sets the pointer in ARefCountedObject to Nil.
Raises an EAssertionFailed exception if the object instance in ARefCountedObject is derived from a class other than TRefCountedObject.
Version 4.0 | Generated 2025-05-03 | Home |