I am working on some image processing scripts in .net
and came across the following article outlining how to crop, resize, compress, etc.
In the first comment, someone states that the methods used in the article for imaging are notorious for memory leaks:
A quick warning to everybody thinking about using System.Drawing (or GDI+) in an ASP.NET environment. It's not supported by Microsoft and MSDN (as of recently) clearly states that you may experience memory leaks.
Then, in the second comment, the article author effectively says "i've handled that problem":
Just to make clear the code above isn't thrown together. It evolved with time because as you suggested it is too easy to mistakenly create performance issues when using GDI+. Just see how many times I've written 'using' above!
I am wondering how (or if) the use of using
effectively handles (or improves) the memory leak problems referenced in the first comment.