List:MySQL++« Previous MessageNext Message »
From:Warren Young Date:August 18 2005 5:07pm
Subject:Re: problems using mysql++ > 2.0.0
View as plain text  
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.
Thread
problems using mysql++ > 2.0.0Thomas Werth18 Aug
  • Re: problems using mysql++ > 2.0.0Warren Young18 Aug
    • Re: problems using mysql++ > 2.0.0Thomas Werth19 Aug
      • Re: problems using mysql++ > 2.0.0Warren Young19 Aug
Re: problems using mysql++ > 2.0.0Thomas Werth18 Aug
  • Re: problems using mysql++ > 2.0.0Warren Young18 Aug