From: Warren Young Date: January 16 2009 8:01pm Subject: Re: Connect exception List-Archive: http://lists.mysql.com/plusplus/8314 Message-Id: <4970E77F.1020100@etr-usa.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Attila wrote: > Any ideas why I would get a problem with calling connect() ? disconnect() is all but destroying the working bits underlying the Connection object, on the theory that you're not going to use it again. It wouldn't be hard to change DBDriver::connect() to rebuild these things (mysql_init(), etc.) if it sees that they've been wiped out by a disconnect() call. Patches thoughtfully considered. Alternately, you can do as most people seem to do, which is destroy the Connection object and create a new one. Same effect, while avoiding this limitation.