List:MySQL++« Previous MessageNext Message »
From:Warren Young Date:August 24 2005 9:17am
Subject:Re: Can't run example!!
View as plain text  
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.
Thread
Can't run example!!Mehran Ziadloo24 Aug
  • Re: Can't run example!!Warren Young24 Aug
Re: Can't run example!!Mehran Ziadloo25 Aug