dbTalk Databases Forums  

Debug Assertion Failure with WxWidgets 2.6.3

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


Discuss Debug Assertion Failure with WxWidgets 2.6.3 in the mailing.database.mysql-plusplus forum.



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

Default Debug Assertion Failure with WxWidgets 2.6.3 - 06-16-2006 , 08:47 AM






------=_Part_98148_15442348.1150465600459
Content-Type: text/plain; charset=WINDOWS-1252; format=flowed
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Greetings



I'm trying to use mysql++ 2.1.1 with the grid component of wxWidgets
2.6.3and with MySQL
5.0 on Windows XP Service Pack 2 with Visual Studio 2005 standard



I'm working with this code now, an expansion of the wxWidget grid sample



[code]



=85

sql_create_5(city,

1,5,

int,ID,

std::string,Name,

std::string,CountryCode,

std::string,District,

mysqlpp::longlong, Population)

=85



GridFrame::GridFrame()

: wxFrame( (wxFrame *)NULL, wxID_ANY, _T("wxWidgets grid class demo=
"
),

wxDefaultPosition,

wxDefaultSize )

{



=85



mysqlpp::Connection con(mysqlpp::use_exceptions);



con.connect(MY_DATABASE,MY_HOST,MY_USER,MY_PASSWOR D);

mysqlpp::Query query =3D con.query();

query.reset();

query << "SELECT * FROM city";



std::vector <city> mycities;



query.storein(mycities);

[\code]



I have everything compiling fine but I'm triggering a breakpoint in
dbgheap.c on line 1252

Quote:

Debug Assertion Failure



_CrtIsValidHeapPointer(pUserData)




on my program line query.storein(mycities); and I'm lost. The exact same
mysqlpp code compiles fine in a windows console application but for whateve=
r
reason it is not playing well with wxWidgets.

------=_Part_98148_15442348.1150465600459--

Reply With Quote
  #2  
Old   
AT
 
Posts: n/a

Default Re: Debug Assertion Failure with WxWidgets 2.6.3 - 06-16-2006 , 09:16 PM






Dave Byington wrote:
[quote]I have everything compiling fine but I'm triggering a breakpoint in
dbgheap.c on line 1252

Quote:

Debug Assertion Failure
This is almost always caused by mixing build modes.

There are three or four build options that must all be the same in the
libraries you use as in your main program or else VC++'s runtime gets
very upset. Just off the top of my head: debug vs. release, threaded
CRT vs. not, and CRT in DLL vs. statically linked. There may be more.
See README.vc for some hints.

--
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.