Internet Direct (Indy)
Home
PreviousUpNext
TIdThreadSafeList.OwnsObjects Property

Indicates if object instances added to the list are owned by the thread-safe data type.

Pascal
property OwnsObjects: Boolean;

OwnsObjects is a Boolean property that indicates if object instances added to the list are owned by the thread-safe data type. The default value for OwnsObjects is False, as assigned during initialization of the object instance. 

OwnsObjects is used in the destructor to determine if items in the list should be freed and released using ClearAndFree prior to destroying the thread-safe data type. 

Use AddObject to add object instances to the thread-safe list.

AddObject 

ClearAndFree

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.