× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Nathan Andelin skrev den 31-07-2008 15:54:
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.

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.

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.
Good luck and have fun :)

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 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.