List:MySQL++« Previous MessageNext Message »
From:Mickaël Wolff Date:September 26 2008 1:55pm
Subject:Re: possible bug
View as plain text  
Izzy a écrit :
> mysqlpp::Connection *pCon;
> pCon = new mysqlpp::Connection[ 20 ];
>   
  You have to avoid this. They are a lot of problems when you do things 
that way. Please use standard container, or home made container, but 
avoid the use of the opertators new[] dans delete[] (in fact, the 
polymorphic behavior can be surprising).

  std::list<mysqlpp::Connection *> is rather better, even you have to 
get care about memory management.

  Using C-arrays don't solve the case.

-- 
Mickaël Wolff aka Lupus Michaelis
http://lupusmic.org

Thread
possible bugIzzy26 Sep
  • Re: possible bugMickaël Wolff26 Sep
  • Re: possible bugMickaël Wolff26 Sep
    • Re: possible bugIzzy28 Sep
  • Re: possible bugEric Woo27 Sep
  • Re: possible bugChris Frey28 Sep