From: Warren Young Date: May 15 2009 1:28pm Subject: Re: Segfault using thread_start List-Archive: http://lists.mysql.com/plusplus/8569 Message-Id: <4A0D6DF5.8000406@etr-usa.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Okay, here's the new plan: - Add DBDriver::library_begin() and library_end(), wrapping similarly named functions in the C API. - Create Process class, which you create at the top of main() on the stack, purely to call these automatically. - Update userman to recommend creating Process object in ConnectionPool derivatives, instead. - Create Thread class to call existing DBDriver::thread_start() and thread_end(), similar to Process, created on the stack of the thread entry function. - Move memory leak FAQ into userman, rewriting it to cover all this.