dbTalk Databases Forums  

Exceptions when executing query << "select * from stock";

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


Discuss Exceptions when executing query << "select * from stock"; in the mailing.database.mysql-plusplus forum.



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

Default Exceptions when executing query << "select * from stock"; - 05-07-2006 , 09:21 PM






Hi,

I am a newbie to mysql++. I have successfully compiled the mysql++ lib
under the environment of visual studio 2005. And then I tried to
compile and execute the examples to make sure the lib is working
correctly. However, I met a problem when it executed to: query <<
"select * from stock"; in "custom1.cpp". The program generates an
exception "Unhandled exception at 0x7c3a8d3f (msvcp71.dll) in
custom1.exe: 0xC0000005: Access violation writing location
0x0040e308.". Could anyone help me to handle this problem?

Yu Sheng

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

Default Re: Exceptions when executing query << "select * from stock"; - 05-08-2006 , 09:25 AM






Sheng Yu wrote:
Quote:
I am a newbie to mysql++. I have successfully compiled the mysql++ lib
under the environment of visual studio 2005.
....

Quote:
exception "Unhandled exception at 0x7c3a8d3f (msvcp71.dll) in
Something is wrong with your build environment. msvcp71.dll is from VS
2003. You should be linking against msvcp80.dll.

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

Default Re: Exceptions when executing query << "select * from stock"; - 05-08-2006 , 11:19 AM



Thank you for reply. I have also noticed this problem, and I have checked
the call stack. The function in msvcp71.dll is called by msvcp80d.dll.
I just uninstall VS 2003 and leave VS2005 the only developing tools. The
problem remains, excepting that msvcp80d.dll could not found msvcp71.dll.

But if I compile and run the example in mysql++-1.7.40, everything
goes well and
no exceptions are generated.

On 5/8/06, Warren Young <mysqlpp (AT) etr-usa (DOT) com> wrote:
Quote:
Sheng Yu wrote:

I am a newbie to mysql++. I have successfully compiled the mysql++ lib
under the environment of visual studio 2005.

...

exception "Unhandled exception at 0x7c3a8d3f (msvcp71.dll) in

Something is wrong with your build environment. msvcp71.dll is from VS
2003. You should be linking against msvcp80.dll.

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsub=3Dmintsheng@gmai=
l.com


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