Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I read on Douglas Crockford's page as well as around the Internet that there are some versions of Internet Explorer that exhibit memory leaks due to an interaction between DOM and JavaScript. What versions are those?

share|improve this question
    
Where did you read it? maybe it will say there. –  Scott Chamberlain Jun 26 '13 at 14:22
    
@ScottChamberlain all over the place like on Douglas Crockford page javascript.crockford.com/memory/leak.html but it was written before IE8 was out. –  jcubic Jun 27 '13 at 5:58

1 Answer 1

up vote 2 down vote accepted

According to this blog post by an MS employee:

As described in detail in this MSDN article the JScript garbage collector in previous versions of Internet Explorer manages the lifetime of JScript objects but not of DOM objects. As a result, the JScript garbage collector cannot break circular references between DOM objects and JScript objects, and memory leaks may occur.

  • In IE6, these circular references are broken when the Internet Explorer process terminates (and leaks are very frequent).
  • In IE7, these circular references are broken when users navigate away from the page.
  • In IE8 the problem is completely mitigated.

Programmers who need to support older versions of the Internet Explorer browser should still try to pay attention to programming patterns such as JScript closures, as they could cause memory leaks.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.