vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hello all! I've a problem with mysql++-2.1.1 examples. Compiler compiles properly but when I create Query object program crashes (when it is running). This constructor (creating connection) works well: mysqlpp::Connection con("information_schema", "localhost","root","pass",3306); //creating new database works properly too //con.create_db("nowa_db"); ,but when I add next line (it compiles well) mysqlpp::Query query = con.query(); program (Visual C++) shows error in sreambuf file: virtual __CLR_OR_THIS_CALL ~basic_streambuf() { // destroy the object _DELETE_CRT(_Plocale); } So if you have any ideas write, please Thanks a lot. |
| ||||
| I found out that the problem is in destructor of Query object When I create this dynamic: mysqlpp::Query *and = new mysqlpp::Query(baza.query()); ...and I don't use delete - program works Other objects i.e. mysqlpp::Result mysqlpp::Row have to be create dynamic too. It seems to be a problem in destructors. Can anyone help me? I use mysql++-2.1.1, VC++ 2005 |