List:MySQL++« Previous MessageNext Message »
From:  Date:January 18 2006 6:21am
Subject:plz help me.. there is a memory leak..
View as plain text  
I am making some server program that insert data to mysql 5.0.6
And I am using mysql++-2.0.7. 
 
But there is a memory leak, so let me know how can I avoid this problem.
========================================================================================================
mysqlpp::Query query = g_dbcon.query();
query << "insert into table_name \
             
(column_0,column_1,column_2,column_3,column_4,column_5,column_6,column_7,column_8,column_9)
\
              values(%0q, %1q, %2q, %3q, %4q, %5q, %6q, %7q, %8q, %9q)";
query.parse();
unsigned int i; 
for(i=0;i<receivedVector.size();i++) //receivedVector is Vector that store data to
insert
{
    templateQuery.def[i] = receivedVector.at(i);
}
//until this, there is no memory leak
query.execute();    // <-------------------after here, this program's memory increasing
//query.execute("a","b","c"); // but if i insert data like this, there is no memory leak..

========================================================================================================
 
 
sorry for my poor English.
Thanks.


Thread
plz help me.. there is a memory leak.. 18 Jan
  • Re: plz help me.. there is a memory leak..Denis ERCHOFF18 Jan
RE: plz help me.. there is a memory leak..최 종윤18 Jan
  • Re: plz help me.. there is a memory leak..Denis ERCHOFF18 Jan
RE: plz help me.. there is a memory leak..최 종윤18 Jan
  • Re: plz help me.. there is a memory leak..Drew Vogel18 Jan
RE: plz help me.. there is a memory leak..최 종윤19 Jan
  • Re: plz help me.. there is a memory leak..Chris Frey27 Jan
RE: plz help me.. there is a memory leak..최 종윤19 Jan
  • Re: plz help me.. there is a memory leak..Drew Vogel19 Jan
RE: plz help me.. there is a memory leak..최 종윤23 Jan