finalization order?
Ragnar Hojland Espinosa
ragnar at linalco.com
Thu Jan 8 13:30:54 UTC 2004
On Thu, Jan 08, 2004 at 10:03:28AM -0300, Alejandro F. Reimondo wrote:
> Try to make only the connection (not the handle) to be finalized.
> Consider the handle as a private instance of the connection (it's owner).
I don't think I can practically do that in the general case, because
heres the chain of objects that are created when, say, a search is
requested through LDAPConnection.
LDAPAsyncOperation / LDAPSearchOperation -> LDAPSearchResults ->
LDAPEntry -> LDAPAttributeIterator
and each of these classes needs in-order finalization or I end up with
a connection being teared down but the thread still going on..
> ----- Original Message -----
> From: "Ragnar Hojland Espinosa" <ragnar at linalco.com>
>
> > I have the equivalent of the following:
> >
> > handle _ MyHandle new.
> > conn _ MyConnection newUsing: handle
> >
> > When handle and conn are GCed, I was expecting first for conn to be
> > finalized and then for handle. Thats happens almost all the time but
> > not always, which is quite inadecuate.. can I do something about it?
--
Ragnar Hojland - Project Manager
Linalco "Specialists in Linux and Free Software"
http://www.linalco.com Tel: +34-91-4561700
More information about the Squeak-dev
mailing list
|