Topic Path: Symbol Reference > Classes > TIdThreadSafeList Class > TIdThreadSafeList Properties > OwnsObjects Property
ContentsIndexHome
PreviousUpNext
TIdThreadSafeList.OwnsObjects Property

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

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

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.