Table of Contents

TTMSMCPTarget.OwnsObject Property

Determines whether destroying the target also destroys the object it refers to.

API unit family: TMS.MCP.Attributes.Server Declaring type: TTMSMCPTarget Type: Boolean

Syntax

property OwnsObject: Boolean;

Remarks

False, the default, leaves the object with its original owner, which is what a form field or a component instance needs. Set it to True only for an instance created solely for this target; the target then frees it when the collection is cleared or the server is destroyed. Getting this wrong leaks the instance in one direction and frees it twice in the other.