MySQL Forums
Forum List  »  Connector/C++

Re: connect() method crashes 1.0.4-beta
Posted by: Ricardo Ferreira
Date: May 08, 2009 05:20AM

Hey everyone,

Well I have the 1.0.5 version of the connector, and some weeks ago I did some tests on it and built a small lib for later use. I tested and everything works. That "later time" to use the lib came recently, and I was faced with THIS exact problem. I tried linking both dynamically and static, I tried compiling the libs but I'm not suceeding (using CMake 2.6 and Visual C++ 2008 express).

It crashes right on the connect with access violation, and I'm pretty sure it isn't the code:

try{
		ip.insert(0,"tcp://");
		ip += ":" + porta;
		//inicializar o driver:
		driver = get_driver_instance();
		//nova conexao:
		conn = driver->connect(ip,user,pass);
		//criar statement:
		stat = conn->createStatement();
		stat->execute("USE " + nome_bd);

	}catch(sql::SQLException& ex){
		cout << "Erro em:" << endl;
		cout << "(" << __FUNCTION__ << ")" << endl;
		cout << "erro: " << ex.what();
		cout << "codigo: " << ex.getErrorCode();
	}

So, is any new verion with a fix coming up or could anyone help me in building or providing me with a lib? Thanks in advance

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: connect() method crashes 1.0.4-beta
3039
May 08, 2009 05:20AM


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.