|
If setting the length to zero does not clear out the objects in the array you have these invisible references that are just a pain to find.From: Thorbjørn Ravn Andersen
Garbage collection can only collect those objects which are not referenced from _anywhere_.
I thought I read somewhere that setting a value to null (in JavaScript) would allow memory to be reclaimed. But I'm less certain about arrays, where you might set its length to 0.
Good luck and have fun :)This is a frequent issue in Java too, where you cannot explicitly
tell an object to go away forever.
I think I got the problem under control by explicitly evoking the DOM removeEventListener() and removeChild() methods. But I'm going to keep an eye on it.
This mailing list archive is Copyright 1997-2026 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.