5 messages in com.mysql.lists.plusplusproblem using 2 connections....
FromSent OnAttachments
Thomas Werth15 Sep 2004 00:10 
Steffen Schumacher15 Sep 2004 00:17 
Thomas Werth15 Sep 2004 04:59 
Steffen Schumacher15 Sep 2004 06:34 
Thomas Werth15 Sep 2004 22:32 
Subject:problem using 2 connections....
From:Thomas Werth (thom@vahle.de)
Date:09/15/2004 12:10:27 AM
List:com.mysql.lists.plusplus

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 ?