From: Brandon M. <bnd...@ho...> - 2000-12-08 18:29:11
|
Not really.. if we use the remove/delete it actually removes the object from the document structure. But is the object actually gone from the variable "cloud"? maybe not. Even if all references are removed from them, the garbage collector has to run and recover the freed space. From my readings, the garbage collector doesn't run untill the page is unloaded, at least in NS. At that point, all references are moot anyway. I believe that is one of the reasons for the recycling of Netscape layers. Even though the layer is removed, and all references are gone... the layer still exists. Errors popup mysteriously.. Other than performing a "setHTML" the layers persist. ----- Original Message ----- From: "Pascal Bestebroer" <pb...@oi...> To: <dyn...@li...> Sent: Friday, December 08, 2000 2:40 AM Subject: RE: [Dynapi-Dev] core api -- DynLayer Questions > maybe using the document.all (real browser document.all array) or > getElementById for DOM browsers .. if it returns a null value then the > element is really gone, otherwise the browser still things it's there. > > > > Pascal Bestebroer > pb...@oi... > http://www.oibv.com > > > -----Oorspronkelijk bericht----- > Van: dyn...@li... > [mailto:dyn...@li...]Namens Scott Andrew > LePera > Verzonden: vrijdag 8 december 2000 8:35 > Aan: dyn...@li... > Onderwerp: Re: [Dynapi-Dev] core api -- DynLayer Questions > > > > The major difference between the two is that remove methods simply > remove the DynLayer but do not destroy it. You can remove a DynLayer > and then add it back, possibly to a new parent. When a DynLayer is > removed, it returns to the "unassigned" state (meaning it has no parent > and no DynDocument). > > The delete methods remove the DynLayer and destroy all internal > references to it. When you delete a DynLayer, you cannot add it back. > It's gone. You have to create a new one. > > That said, I wish there was some way to ensure that all references to a > DynLayer object were destroyed -- as long as even one reference remains, > the DynLayer will still exist, and the resources it uses will not be > released. I don't think one exists; there's no way that I know of to > automatically detect all references to an object and destroy them. Or > is there? > > -- > scott andrew lepera > ----------------------------------- > web stuff: www.scottandrew.com > music stuff: www.walkingbirds.com > _______________________________________________ > Dynapi-Dev mailing list > Dyn...@li... > http://lists.sourceforge.net/mailman/listinfo/dynapi-dev > > _______________________________________________ > Dynapi-Dev mailing list > Dyn...@li... > http://lists.sourceforge.net/mailman/listinfo/dynapi-dev |