From: Warren Young Date: August 24 2005 9:17am Subject: Re: Can't run example!! List-Archive: http://lists.mysql.com/plusplus/4802 Message-Id: <430C3B41.10706@etr-usa.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Mehran Ziadloo wrote: > Expression: _CrtIsValidHeapPointer(pUserData) The shipping version of the library only builds a release version. Linking that with a debug version of a program built in the IDE triggers this problem because the heap debugging stuff loses track of resources acquired/released by MySQL++ in this situation. The solution is to build a debug version of MySQL++ and link to that in debug mode. I hope to make it easier to build both release and debug versions of MySQL++ in the next version. Patches thoughtfully considered if anyone wants to try their hand at implementing this. The key is to make it as easy as possible, so anything that duplicates a lot of work won't be accepted. But even if rejected, at least it will be food for discussion. > So what did I do wrong? You could have found mention of this by searching the mailing list. It's come up twice before since the 2.0 release.