From: Warren Young Date: May 3 2007 9:30pm Subject: Re: query memory bug List-Archive: http://lists.mysql.com/plusplus/6584 Message-Id: <463A546C.6030406@etr-usa.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit aberger@stripped wrote: > > if I print out the structure before I create the query object, the > structure looks fine. When i print out the structure after the query > object a small section of the data in the structure is corrupt. If I > remove the mysql++ calls from the function the struct remains fine. When you remove those calls, you are changing the memory layout of your program. You can't disentangle that fact from the possibility that MySQL++ is corrupting your program's memory without more tests. I suggest running the MySQL++-free version of your program under a heap checking tool such as Valgrind.