From: Warren Young Date: June 23 2006 5:49am Subject: Re: Query Object Memory Leak? List-Archive: http://lists.mysql.com/plusplus/5765 Message-Id: <449B80DE.3030701@etr-usa.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Warren Young wrote: > I did something very similar, but mod 10,000 instead, and only got a few > dots before it dereferenced a null pointer. On further investigation, it was that I was only getting one dot -- when i == 0 -- because it was crashing on the first Query object destruction. And that was because I was using a mysqlpp.dll built with VC++ 2003 with my test program built and running under VC++ 2005. D'oh! Running Matt Dargavel's test program, running against a consistent set of libraries, I also see a 66 MB heap after a million runs. This is with the latest repository version of MySQL++, MySQL 4.1.14, and VC++ 2005.