From: Warren Young Date: February 19 2011 12:13am Subject: Re: EXC_BAD_ACCESS exception from storein(container) in MYSQL++ on MAC OS 10 List-Archive: http://lists.mysql.com/plusplus/9225 Message-Id: <242B9672-8D16-4004-838A-C35DF88C8747@etr-usa.com> MIME-Version: 1.0 (Apple Message framework v1082) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable On Feb 17, 2011, at 11:55 AM, Alan Shank wrote: > My code, which works fine in Linux (Ubuntu 10.10) I suspect that if you run it under Valgrind on Linux it will catch a bug = there, too. Working isn't the same as being correct. :) > vector::iterator it;=20 > for loop through the vector, creating members of class SessionObject = from the data=20 > end for=20 Move the vector inside the loop, so it gets completely destroyed then = rebuilt on each query. As your code is structured now, each query after = the first is going to *append* its results to this result set. Alternately, you can say "resvec.clear()" on each iteration, which may = be slightly more efficient. (Or might not. Benchmark to find out, if = it matters.) It's possible that your bug is simply due to running the PC out of = memory.=