This may help ... (grabbing at
straws)
There
is what I regard as a bug in the VCL (D3/D4/D5/D6) when a Form is destroyed, in
that not all components on the form are notified of a Forms/Components
destruction - the issue is in TComponent.DestroyComponents; ,so perhaps if you
are relying on "opremove" notifications, you may be coming unstuck. This
only applies to intraform references (interform is okay, as if
csFreeNotification is in the componentstate, then the opremove notification
takes place correctly).
The
behaviour is not the same when a form is destroyed versus if you manually Free a
component. If you Free a component (outside of the forms destructor) ,
then notifications do occur, but if you let the form (Ie create with a Form
owner) destroy the component, then bad luck. This is inconsistent behaviour
which has tripped me up several times.
Myles.
|
- [DUG]: DLLs Aaron Scott-Boddendijk
- Re: [DUG]: DLLs Aaron Scott-Boddendijk
- RE: [DUG]: DLLs Cooke, Andrew
- Re: [DUG]: DLLs Aaron Scott-Boddendijk
- [DUG]: DLLs Robert Martin
- RE: [DUG]: DLLs Jim Zheng
- Re: [DUG]: DLLs Robert Martin
- Re: [DUG]: DLLs Phil Middlemiss
- Re: [DUG]: DLLs Robert Martin
- RE: [DUG]: DLLs Myles Penlington
- Re: [DUG]: DLLs Myles Penlington
- Re: [DUG]: DLLs Robert Martin