From: Pascal B. <pb...@oi...> - 2000-12-08 07:41:04
|
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 |
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 |
From: Jared N. <ja...@aa...> - 2000-12-11 15:04:44
|
per page memory management was abandoned, as far as I know, in Netscape version 2.0. IE3+ and NS4+ use a variation of the mark and sweep garbage collection algorithm. |
From: Brandon M. <bnd...@ho...> - 2000-12-12 06:16:31
|
Then when does it run, and is it able to be controlled... ie: can we force it to run, such as in several other common languages? -----Original Message----- From: dyn...@li... [mailto:dyn...@li...]On Behalf Of Jared Nuzzolillo Sent: Monday, December 11, 2000 10:00 AM To: dyn...@li... Subject: Re: [Dynapi-Dev] core api -- DynLayer Questions per page memory management was abandoned, as far as I know, in Netscape version 2.0. IE3+ and NS4+ use a variation of the mark and sweep garbage collection algorithm. _______________________________________________ Dynapi-Dev mailing list Dyn...@li... http://lists.sourceforge.net/mailman/listinfo/dynapi-dev |
From: Jared N. <ja...@aa...> - 2000-12-12 14:26:47
|
to my knowledge, and I'm almost completely positive, there is absolutely no way to force the garbage collector to make his rounds, but it's probably pretty efficient. They didn't want us to have to do this, so, they took away the chance for us to clean up our own memory. |