Since the comments to my previous posts contain a few useful links to memory leaks and closure resources, I thought I'd create a linkdump for future reference. Note that I only included those articles that explain what they're doing and why and give code examples. I ignored the pages that just throw scripts over the fence and leave it to the reader to figure out what they're all about.
Let's start with the horse's mouth: over on MSDN IE developer Justin Rodgers explains the fundamental problems. The first two problems, circular references and closures, are the ones we're trying to address.
Mihai Bazon also has a good article on memory leaks and closures, and he treats several real-world event handling examples.
In reaction to my tests, Laurens van den Oever gives some more insight in my test script 5, and how to change it so that it leaks memory. James Mc Parlane, finally, gives a detailed explanation on why my test script 4 leaks (though he uses a slightly different example).
If you know of more resources, please add a comment. Note, though that I'm only interested in resources that explain what they're doing and why. Links to resources that don't explain themselves well will be removed.
I’ll be around at the following conferences:
Comments are closed.