Subject | Re: [IBO] This is a potential problem -- exception from IBObject |
---|---|
Author | zachs78 |
Post date | 2005-10-13T08:57:08Z |
Hi Alan,
Yeah.
Each thread has:
1 session
1 transaction
1 connection
and a bunch of tables
Each thread's runtime object creation code is as follows:
TIB_Session * tmpSession = new TIB_Session(this);
TIB_Connection * tmpDatabase = new TIB_Connection(this);
tmpSession->DefaultConnection = tmpDatabase;
tmpDatabase->IB_Session = tmpSession;
TIB_Transaction * tmpTransaction = new TIB_Transaction(this);
tmpTransaction->IB_Session = tmpSession;
tmpTransaction->IB_Connection = tmpDatabase;
tmpDatabase->DefaultTransaction = tmpTransaction;
tmpDatabase->DefaultTransaction->Isolation = tiCommitted;
tmpDatabase->LoginPrompt = false;
tmpDatabase->Protocol = cpTCP_IP;
tmpDatabase->Username = "SYSDBA";
tmpDatabase->Password = "masterkey";
tmpDatabase->Connected = true;
Thanks Alan.
Yeah.
Each thread has:
1 session
1 transaction
1 connection
and a bunch of tables
Each thread's runtime object creation code is as follows:
TIB_Session * tmpSession = new TIB_Session(this);
TIB_Connection * tmpDatabase = new TIB_Connection(this);
tmpSession->DefaultConnection = tmpDatabase;
tmpDatabase->IB_Session = tmpSession;
TIB_Transaction * tmpTransaction = new TIB_Transaction(this);
tmpTransaction->IB_Session = tmpSession;
tmpTransaction->IB_Connection = tmpDatabase;
tmpDatabase->DefaultTransaction = tmpTransaction;
tmpDatabase->DefaultTransaction->Isolation = tiCommitted;
tmpDatabase->LoginPrompt = false;
tmpDatabase->Protocol = cpTCP_IP;
tmpDatabase->Username = "SYSDBA";
tmpDatabase->Password = "masterkey";
tmpDatabase->Connected = true;
Thanks Alan.
>same
> sounds to me like you have more than one thread trying to use the
> transaction.
> Do you have each thread using their own transaction?
> Alan
>