Re: Problem freeing components with .free
- From: erewhon@xxxxxxxxxx (J French)
- Date: Thu, 15 Feb 2007 07:43:02 GMT
On Thu, 15 Feb 2007 03:27:56 +0100, Hans-Peter Diettrich
<DrDiettrich1@xxxxxxx> wrote:
<snip>
OH on TComponent.Owner property:
Indicates the component that is responsible for streaming and freeing
this component.
IMO this should work for you, instead of X.Free:
X.Owner.RemoveComponent(X);
That looks interesting, but according to the Help it is a mechanism
for changing the Owner of a component and meant to be used in
conjunction with InsertComponent.
Or is there some wrinkle in versions later than D4 ?
.
- Follow-Ups:
- Re: Problem freeing components with .free
- From: Hans-Peter Diettrich
- Re: Problem freeing components with .free
- References:
- Problem freeing components with .free
- From: TeChNoInSiDe
- Re: Problem freeing components with .free
- From: Sebastian Doht
- Re: Problem freeing components with .free
- From: TeChNoInSiDe
- Re: Problem freeing components with .free
- From: Hans-Peter Diettrich
- Problem freeing components with .free
- Prev by Date: Re: The Zen nature of a Delphi database application
- Next by Date: Re: The Zen nature of a Delphi database application
- Previous by thread: Re: Problem freeing components with .free
- Next by thread: Re: Problem freeing components with .free
- Index(es):
Relevant Pages
|