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