Bug #21408 mysql++ 2.1,very bad memory holl
| Submitted: | 2 Aug 2006 1:47 | Modified: | 2 Aug 2006 11:32 |
|---|---|---|---|
| Reporter: | hzh hzh | Email Updates: | |
| Status: | Closed | Impact on me: | |
| Category: | MySQL++ | Severity: | S3 (Non-critical) |
| Version: | 2.1 | OS: | all windows |
| Assigned to: | CPU Architecture: | Any | |
| Tags: | very bad memory holl | ||
[2 Aug 2006 11:32]
MySQL Verification Team
Thank you for the bug report. Currently MySQL++ isn't maintained by MySQL, please do the report for its maintainer. Thanks in advance.
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.051 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.
Description: hzh_from_china hzh62@163.com very bad memory holl I am from china,understanding my a little english. I use directly mysqlpp 2.1 source code download from www.mysql.org,not use mysqlpp.lib. is my very simple programm,present bad memory holl. use mysqlpp.lib ,present bad memory holl. unsigned long __stdcall update(void *argc) { int i = 0; for(;;) { Sleep(1000 * 0.1); std::string sql = "update processingtransactioninterface"; sql += " set actresult = 1 where actresult = 2"; //CMysqlClient client; //mysqlpp::Connection * conn = client.GetConnect(1); //if(conn == NULL) //{ //continue; //} mysqlpp::Connection conn(false); // = new mysqlpp::Connection(false); conn.connect("new_db","127.0.0.1","root","mysql5",3306); mysqlpp::Query query = conn.query(); if(!query.exec(sql)) { std::cout<<"update fail"<<endl; } else { std::cout<<"update success"<<endl; } } return 0; } int main( int argc, char * argv[] ) { unsigned long p3 = 1; int parm3 = 2; ::CreateThread(0,0,update,(void*)&parm3,0,&p3); system("pause"); return 1; } How to repeat: Drang test