From: Warren Young Date: August 18 2005 5:07pm Subject: Re: problems using mysql++ > 2.0.0 List-Archive: http://lists.mysql.com/plusplus/4777 Message-Id: <4304C056.6040006@etr-usa.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Thomas Werth wrote: > > Achtung Mysql++ hat Speicherloch bei Query.store() > in combination mit std::string If I understand Google's translation, you are claiming that there is a memory leak in Query.store() when using C++ strings? > //Backslashes doublen > replaceSubstring( &sql, "\\", "\\\\" ); I believe MySQL++'s escape manipulator will do this for you. > query << sql.c_str(); Why can't you say "query << sql" ? Is this where you see this memory leak? > When running in try block right after leaving with return debug assert > hits in . Try building a debug version of MySQL++. I believe all you need to do is change the /M?? flag in lib/Makefile.vc and rebuild the library. Then see if the problem still occurs when linking your debug program against the debug version of MySQL++. It may simply be that VC++'s memory debugger is losing track of the Connection object, and seeing an error where none exists.