dbTalk Databases Forums  

"Debug assertion failed" problem

mailing.database.mysql-plusplus mailing.database.mysql-plusplus


Discuss "Debug assertion failed" problem in the mailing.database.mysql-plusplus forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Krzysztof Machelski
 
Posts: n/a

Default "Debug assertion failed" problem - 09-24-2005 , 09:26 AM






Hi All,

I'm compiling my project under Windows (VS7.1 2003) and for some
strange reason I keep getting those errors when debugging:

Debug assertion failed
File: dbgheap.c
Line: 1132

Jumping to the position indicated I see:

/*
* If this ASSERT fails, a bad pointer has been passed in. It may be
* totally bogus, or it may have been allocated from another heap.
* The pointer MUST come from the 'local' heap.
*/
_ASSERTE(_CrtIsValidHeapPointer(pUserData));

Is it really error? Maybe I am doing something wrong? Or maybe is it
just something not to worry about? Thanks in advance for any ideas.


--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw


Reply With Quote
  #2  
Old   
Chris Frey
 
Posts: n/a

Default Re: "Debug assertion failed" problem - 09-24-2005 , 05:22 PM






On Sat, Sep 24, 2005 at 04:26:10PM +0200, Krzysztof Machelski wrote:
Quote:
Hi All,

I'm compiling my project under Windows (VS7.1 2003) and for some
strange reason I keep getting those errors when debugging:

Debug assertion failed
File: dbgheap.c
Line: 1132
I believe this is in Windows code, not mysql++. If you're debugging,
you should be able to look at the call stack and post a backtrace.

- Chris


--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
  #3  
Old   
Warren Young
 
Posts: n/a

Default Re: "Debug assertion failed" problem - 09-26-2005 , 06:49 AM



Krzysztof Machelski wrote:
Quote:
Debug assertion failed
File: dbgheap.c
Line: 1132
You're probably linking the release version of mysqlpp.lib to a debug
version of your program. You have to use the debug version, or
Microsoft's heap checker gets confused.

Hint: you could have found this info by searching the mailing list.

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.