MySQL Forums
Forum List  »  Connector/C++

Re: Trying to work C++ Connector x64 with Visual Studio 2010
Posted by: Christopher Rohlfs
Date: May 31, 2012 03:43PM

Hi,

Okay, I just tried again to use the 32-bit versions of MySQL and C++ Connector using the specifications described here:
http://forums.mysql.com/read.php?167,492097,492097#msg-492097

which worked for other users in the recent post here:
http://forums.mysql.com/read.php?167,545584,545618#msg-545618

but I ran into problems in the same place: Access violation. The statement:

driver = get_driver_instance();

runs without a glitch, but as with the 64-bit version, the next command:

con = driver->connect("tcp://localhost:3306", "root", "password");

generates an exception. --in the 32-bit case, it generates the text below:

First-chance exception at 0x7453af68 (msvcr90.dll) in SQL32Test.exe: 0xC0000005: Access violation reading location 0x34656572.
Unhandled exception at 0x7453af68 (msvcr90.dll) in SQL32Test.exe: 0xC0000005: Access violation reading location 0x34656572.

If I continue the program, it generates a long list of additional exceptions, and if I stop debugging, I get:

The program '[3688] SQL32Test.exe: Native' has exited with code -1073741819 (0xc0000005).

I'm able to log into the localhost from the MySQL command line client using the same password, but these access violations are appearing with both the 32-bit and 64-bit C++ Connector MSIs.

Anybody have any thoughts as to what could be going on?

Thank you very much,
Chris

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Trying to work C++ Connector x64 with Visual Studio 2010
2676
May 31, 2012 03:43PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.