dbTalk Databases Forums  

Can't run example!!

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


Discuss Can't run example!! in the mailing.database.mysql-plusplus forum.



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

Default Can't run example!! - 08-24-2005 , 12:36 AM






Hi,
I've just got new version of MySQL++, 2.0.2. I used to work with the old
one, 1.7.9. First let me tell you that I'm so glad this project's proceeding
since MyOLEDB has so many unbelievable bugs!!
I have a problem using MySQL++, I compiled it successfully but when I run
the 'resetdb' example, it prompts an Assertion error and exits. I'm using it
in windows xp and compiled it by VC 7.1 and my MySQL server is 4.1.9. The
error says:

Debug Assertion Failed!
Program: C:\mysql++\examples\resetdb.exe
File: dbgheap.c
Line: 1132
Expression: _CrtIsValidHeapPointer(pUserData)

Since there's no where in README file to say which versions of MySQL we can
connect to by MySQL++, so I tested it by versions: 4.1.6 and 5.0.7 too but
it was no help!!
So what did I do wrong? Well the fact is, I did nothing special, I just
compiled and ran example. I need MySQL++ for a software I'm developing,
please guide me work this out.

Thanks,
Mehran Ziadloo



--
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   
Warren Young
 
Posts: n/a

Default Re: Can't run example!! - 08-24-2005 , 04:18 AM






Mehran Ziadloo wrote:
Quote:
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.

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

--
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   
Mehran Ziadloo
 
Posts: n/a

Default Re: Can't run example!! - 08-24-2005 , 08:33 PM



Well, You're right I had to search for it first, sorry.
But I found out about some bugs I'm gonna share them.
First it's about the Assertion I used to get by compiling the samples,
there's a problem with makefile.vc which: you tried to compile the
mysqlpp.lib in release mode in case that samples will be compiled in debug
mode which will cuase the Assertion alert, I mean debugging sample codes
can't make use of released library file. I'm talking about the makemake vc
and your automatic building the project and samples. If you're gonna have
such an easy to use way to build your project, it better works.
So after I could build the samples correctly I faced a problem which I think
is a bug. The sample 'simple1.cpp' has an run time error at line 56 where it
says: 'it->at(0)'. The error is:

Unhandled exception at 0x00000000 in simple1.exe: 0xC0000005: Access
violation reading location 0x00000000.

Since it's my favorite way to use this library, I hope there's a fix for it
soon.
Thanks for such a great project.

Regards,
Mehran Ziadloo



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