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.