|
|
Choosing A Webhost: |
plz help me.. there is a memory leak..: msg#00065db.mysql.c++
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.
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: problems compiling on osx, Warren Young |
|---|---|
| Next by Date: | Re: plz help me.. there is a memory leak.., Denis ERCHOFF |
| Previous by Thread: | problems compiling on osx, Chad Dombrova |
| Next by Thread: | Re: plz help me.. there is a memory leak.., Denis ERCHOFF |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |