On Oct 25, 9:40 pm, Paco Gómez wrote:
> Hi TJ,
>
> I'm Jose's partner. The thing I don't understand is why we can recover
> memory after creating any other kind of object, but not with DOM
> elements.
I don't see the issue in either Firefox or IE 6.
[...]
> Do you have any idea why is this hap
Hi,
> Do you have any idea why is this happening?
Well, assuming it _is_ actually happening as opposed to being a
measurement error, I'm afraid not. The thing (again) that I'm not sure
Jose was really clear on was that memory will NOT be freed immediately
just because you stopped referencing it,
Hi TJ,
I'm Jose's partner. The thing I don't understand is why we can recover
memory after creating any other kind of object, but not with DOM
elements. For example, this memory is recovered after destroying the
object: (http://pastie.org/1247004)
var TestClass = Class.create({
initialize: fun
Hi,
> So, why is deleting this variable and not the array? it sounds very
> strange for me.
Again, in my tests using a real browser and looking at the memory used
by the browser as reported by the operating system, the memory used by
the elements in the array _is_ getting released, over time, and
Hi again,
Thanks a lot for your time and help.
But still something that I can't understand.
The property object options has 3 variables inside:
this.options = {
vari: '',
array: '',
testDiv: ''
};
What I can't understand is that for "vari" and "testDi
Hi,
Sorry, all of the numbers in my original post are off by 1,000. I was
writing "32k" when I should have been writing "32,000k" (or ~31M).
Sorry about that, misread the Chrome memory page and failed to
think. :-)
> But the problem is still there, I don’t know how to release the memory
> used by
Hi,
First of all, thanks a lot for your time and help.
I forgot to say that the problem is using windows and IE8 (of course…)
but I have to support IE for some clients.
Also, the class is a test class, is not doing anything “useful”, is
just to see how to release the memory in IE, the real applica
Hi,
> I have a big problem in my application, when I create a global class
> object is impossible for me to release the memory and I'm having
> memory leaks.
It looks to me like you're doing nearly everything you need to do (and
a little bit more). Remember that all you can do is make sure that
m