List:MySQL++« Previous MessageNext Message »
From:Warren Young Date:June 23 2006 5:49am
Subject:Re: Query Object Memory Leak?
View as plain text  
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.
Thread
Query Object Memory Leak?Bill K21 Jun
  • Re: Query Object Memory Leak?Warren Young21 Jun
    • Re: Query Object Memory Leak?Bill K21 Jun
      • Re: Query Object Memory Leak?Warren Young21 Jun
        • Re: Query Object Memory Leak?Bill K21 Jun
          • Re: Query Object Memory Leak?Warren Young21 Jun
            • Re: Query Object Memory Leak?Bill K22 Jun
              • RE: Query Object Memory Leak?Matt Dargavel22 Jun
                • Re: Query Object Memory Leak?Bill K22 Jun
                  • Re: Query Object Memory Leak?Jim Langston22 Jun
                • Re: Query Object Memory Leak?Warren Young23 Jun
              • Re: Query Object Memory Leak?Warren Young23 Jun
                • Re: Query Object Memory Leak?Warren Young23 Jun
                  • RE: Query Object Memory Leak?Matt Dargavel23 Jun