erikkallen
erikkallen

Reputation: 34391

ExtJS and the infamous memory leak

What, if anything, do I have to be careful about doing to prevent the infamous IE circular reference memory leak when using ExtJS? I have seen this SO question and this ExtJS forum thread, but I'm hoping for some short checklist of things to do/avoid.

Upvotes: 2

Views: 6961

Answers (2)

roundcrisis
roundcrisis

Reputation: 17795

Apparently ExtJs 3.1 has a lot of memory performance improvements ( I haven't measured but it does appear to be so)
However you need to be very careful on the objects you create and how you dispose them, that was pretty much the bottom line.

Use IeSieve , and there is another tool , but I cant really remember the name ( i ll edit at 3am when I wake up with I got it! :) )

Upvotes: 0

Hank Gay
Hank Gay

Reputation: 71939

Crockford has a function that will prevent the memory leak (by breaking the circular references) for you.

YUI has the purgeElement function in the Event utility that does basically the same thing. As long as you attach all listeners through addListener and invoke purgeElement before removing something from the DOM, you should be leak-free.

Upvotes: 4

Related Questions