Join the DZone community and get the full member experience.Join For Free
Jumpstart your Angular applications with Indigo.Design, a unified platform for visual design, UX prototyping, code generation, and app development.
Paoli Severini from Microsoft's Global Product Development Team has released a tool called JSLeaks Detector which facilitates finding memory leaks in Internet Explorer. Several articles have been published on how circular references occur in Internet Explorer and how to avoid them. However, this requires the developer to be constantly on guard and even the most seasoned developers slip up at times. This will allow a simple way to test your pages for memory leaks and be aware of when you are leaking memory.
[img_assist|nid=478|title=JSLeaks Detector screenshot|desc=|link=none|align=none|width=699|height=189]
A basic memory leak (in IE 6) as shown on the release page:
jsObject = document.getElementById("LeakedDiv");
document.getElementById("LeakedDiv").expandoProperty = jsObject;
Here the SetupLeak() function creates a circular reference which will leak in IE 6.
The tool installs as a plugin to Internet Explorer 6 and 7 under both Windows XP and Vista. It will be interesting to see if any of the techniques used by Microsoft will be picked up by other IE memory leak tools like sIEve and Drip.
Opinions expressed by DZone contributors are their own.