MySQL Forums
Forum List  »  Connector/C++

Connector crash with connect(_server, _username, _password);
Posted by: THibault MEYER
Date: December 26, 2009 01:43PM

Hi everyone,

It is the first time i used this wrapper. my code compil with success but when i launch my application, it crash !

I'm using Visual Studio 2008 Team System with Windows Seven 64bits (i've test also on Windows XP SP3 32bits).

sql::mysql::MySQL_Driver* _driverSQL;
sql::Connection* _connectSQL;

_driverSQL = sql::mysql::MySQL_Driver::Instance();
_connectSQL = _driverSQL->connect("tcp://127.0.0.1:3306", "root", "123456");
// END OF PROGRAM : CRASH !!
stmt = _connectSQL->createStatement();


with VS2008 debuger i 've this message :
"Unhandled exception at 0x72eab66c in Server.exe: 0xC0000005: Access violation reading location 0xcdcdcdcd."

Location 0xcdcdcdcd is for _connectSQL .

what happened? i need some help please.

Options: ReplyQuote


Subject
Views
Written By
Posted
Connector crash with connect(_server, _username, _password);
5245
December 26, 2009 01: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.