List:MySQL++« Previous MessageNext Message »
From:Thomas Werth Date:September 15 2004 7:10am
Subject:problem using 2 connections....
View as plain text  
hello,

i've problems using two connections at same time.
When modifiyng simple1 example this way :

		Connection con(use_exceptions);
		Connection con2(use_exceptions);
		//connect_sample_db(argc, argv, con);
		con.connect( "data", "pcxx", "user", "pwd" );
		con2.connect( "test", "pcxxx", "user", "pwd" );
		bool testi = con.connected();
		Query query = con.query();
		// This creates a query object that is bound to con.

		query << "select user_id from user_data where 
benutzername='thomas.werth'";
		// You can write to the query object like you would any other ostrem

		Result res = query.store();

I got an access validation in query.store()...
I'm using mysql-4.0.21-win and mysql++ 1.7.16 and set up my studio to 
look in those dirs for needed libs and headers.
what could be the problem ?

-- 
MFG
Thomas Werth

Thread
problem using 2 connections....Thomas Werth15 Sep
  • Re: problem using 2 connections....Steffen Schumacher15 Sep
    • Re: problem using 2 connections....Thomas Werth15 Sep
      • Re: problem using 2 connections....Steffen Schumacher15 Sep
        • Re: problem using 2 connections....Thomas Werth16 Sep