Thursday, December 22, 2011

Memory Leaks

Nice article on the topic: http://www.delphibasics.co.uk/Article.asp?Name=Memory

By the way, Pascal's manner of declaring variables in a single place ('var section') seems unproductive for C/C++ fans but it is very helpful in tracking resources (class references) -- look for the known block in a function and check if all of the references are properly freed on return.

No comments: