List:MySQL++« Previous MessageNext Message »
From:Alexander Stock Date:September 30 2005 10:45am
Subject:MySQL++(2.0.6) debug assertion failure
View as plain text  
Greetings,
I have a problem using mysql++(2.0.6) with vs.net 2003 on windows xp, if  
I'm starting my program (or an example like resetdb.cpp) in the integrated  
debugger of vs.net 2003, I get an assertion at the scope-end of an  
mysqlpp::Query object.

You can see the callstack here:
---
test.exe!_CrtIsValidHeapPointer(const void * pUserData=0x004958d8)  Zeile  
1807	C
test.exe!_free_dbg_lk(void * pUserData=0x004958d8, int nBlockUse=1)  Zeile  
1132 + 0x9	C
test.exe!_free_dbg(void * pUserData=0x004958d8, int nBlockUse=1)  Zeile  
1070 + 0xd	C
test.exe!free(void * pUserData=0x004958d8)  Zeile 1025 + 0xb	C
test.exe!std::_DebugHeapDelete<std::locale>(std::locale *  
_Ptr=0x004958d8)  Zeile 63 + 0x9	C++
test.exe!std::basic_streambuf<char,std::char_traits<char>  
>::~basic_streambuf<char,std::char_traits<char> >()  Zeile 39 + 0xc	C++
test.exe!std::basic_stringbuf<char,std::char_traits<char>,std::allocator<char>
 
>::~basic_stringbuf<char,std::char_traits<char>,std::allocator<char>
> >()   
Zeile 40 + 0xf	C++
test.exe!mysqlpp::Query::~Query()  + 0x4a	C++
test.exe!mysqlpp::Query::`vbase destructor'()  + 0x2b	C++
test.exe!main(int argc=1, char * * argv=0x004a34b0)  Zeile 35 + 0x28	C++
test.exe!mainCRTStartup()  Zeile 259 + 0x19	C
---
(test.exe is the compiled sample1.cpp in debug mode)

compiler flags:
---
/Od /I "C:\mysql\include" /I "C:\mysql++\include" /D "WIN32" /D "_DEBUG"  
/D "_CONSOLE" /D "_MBCS" /Gm /EHsc /RTC1 /MTd /GS /Fo"Debug/"  
/Fd"Debug/vc70.pdb" /W3 /nologo /c /Wp64 /ZI /TP
---

linker flags:
---
/OUT:"Debug/test.exe" /INCREMENTAL /NOLOGO /LIBPATH:"C:\mysql\lib\debug"  
/LIBPATH:"C:\mysql++\debug" /DEBUG /PDB:"Debug/test.pdb"  
/SUBSYSTEM:CONSOLE /MACHINE:X86 libmysql.lib mysqlpp.lib wsock32.lib   
kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib  
shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib  
"\mysql++\debug\mysqlpp.lib"
---
MySQL version: 4.1.14

Some hints where this problem could come from?

Thanks in advance,
Alexander
Thread
MySQL++(2.0.6) debug assertion failureAlexander Stock30 Sep
  • Re: MySQL++(2.0.6) debug assertion failureWarren Young30 Sep
    • Re: MySQL++(2.0.6) debug assertion failureAlexander Stock1 Oct
      • Re: MySQL++(2.0.6) debug assertion failureAlexander Stock1 Oct
        • RE: MySQL++(2.0.6) debug assertion failurePatrick McMichael1 Oct
          • Re: MySQL++(2.0.6) debug assertion failureAlexander Stock1 Oct