List:MySQL++« Previous MessageNext Message »
From:Bill K Date:June 21 2006 1:01pm
Subject:Query Object Memory Leak?
View as plain text  
Sorry, looks like I somehow put this in the wrong thread. (thread: 
CLIENT_FOUND_ROWS) Maybe a mod. can delete that post?

------

I am developing code that needs to create query objects often. There 
seems to be a memory leak - memory not being released by the query 
object when it goes out of scope. Is this a known issue, or am I missing 
something? I have tried this with VC7.1 and VC8.

code to recreate problem:

// Begin Code
mysqlpp::Connection conn = new mysqlpp::Connection();
for(int i=0; i <1000000; i++)
{
   mysqlpp::Query myQuery = conn.query();
}
// End Code


Thanks!

- Bill K.


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