Article ID: 830555 - Last Review: November 2, 2007 - Revision: 3.4 Circular references to DOM objects on an HTML page cause a memory leakOn This PageSYMPTOMSA memory leak occurs when you refresh an HTML page that uses
Microsoft JScript code that contains circular references to objects in the
Microsoft Internet Explorer Document Object Model (DOM). CAUSEThis memory leak occurs because DOM objects are non-JScript
objects. DOM objects are not in the mark-and-sweep garbage collection scheme of
JScript. Therefore, the circular reference between the DOM objects and the
JScript handlers will not be broken until the browser completely tears down the
page. This memory leak will end when the browser opens a new Web page or when the browser window is closed.
RESOLUTIONTo resolve this problem, avoid circular references to
Internet Explorer DOM objects in your Jscript code. To work around this problem
in the sample code that is included in the "More information" section of this
article, make the following change: STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed in the "Applies to" section. MORE INFORMATIONSteps to reproduce the behavior
REFERENCESFor more information about Internet Explorer leak patterns, visit the following Microsoft Developer Network (MSDN) Web site: http://msdn2.microsoft.com/en-us/library/Bb250448.aspx
(http://msdn2.microsoft.com/en-us/library/Bb250448.aspx)
APPLIES TO
| Article Translations
|

Back to the top
