CableDawg
04-19-2007, 05:22 PM
Take a look at http://luddite.net/derek/test/ie_leak_1/
From what I can tell (in IE6), when you subscribe to a non-submittable Element (i.e. a DIV), the Element cache will leak one element. If you store a reference to that Element (or any other) in the same method, it appears as if the entire Element cache leaks. This is a simple test, but in my actual app, the leak count can reach 500+
While testing the example, I noticed that if you subscribe to the form element's 'submit' event, no leak appears to occur. But subscribing to the FORM's parent DIV, to set up a delegate, seems to leak like crazy.
I am using IE Sieve to investigate the leak issue which is available here: http://home.wanadoo.nl/jsrosman/
The actual example page doesn't actually do anything. You will need to load the url in IE Sieve, click the about:blank button, and then check the leak count on the right hand side or click the Show Leaks button.
Please let me know if my example is in error or if there is a quick path or method to avoid these (short of not subscribing to the 'submit' event)
-D
From what I can tell (in IE6), when you subscribe to a non-submittable Element (i.e. a DIV), the Element cache will leak one element. If you store a reference to that Element (or any other) in the same method, it appears as if the entire Element cache leaks. This is a simple test, but in my actual app, the leak count can reach 500+
While testing the example, I noticed that if you subscribe to the form element's 'submit' event, no leak appears to occur. But subscribing to the FORM's parent DIV, to set up a delegate, seems to leak like crazy.
I am using IE Sieve to investigate the leak issue which is available here: http://home.wanadoo.nl/jsrosman/
The actual example page doesn't actually do anything. You will need to load the url in IE Sieve, click the about:blank button, and then check the leak count on the right hand side or click the Show Leaks button.
Please let me know if my example is in error or if there is a quick path or method to avoid these (short of not subscribing to the 'submit' event)
-D