Very often in my application this error occurs. Here's an example snippet. The code is called periodically by the timer. I use a separate transaction, and the database connection has autocommit set to false.
After error each query connected to a database generates that error.
It seems to me that the error occurs after some time of user inactivity (the application in the taskbar).
Example code:
if datamodule1.fakt_przek_list.Active then datamodule1.fakt_przek_list.Close;
datamodule1.fakt_przek_list.ParamByName('DZIAL').AsString := g_uzyt_dzial;
datamodule1.fakt_przek_list.Open; //ERROR Can't perform operation on active transaction.
Can't perform operation on active transaction.
-
krzysiek__m
- Posts: 3
- Joined: Fri 15 Jul 2011 13:11
- Location: Poland
-
AndreyZ
Hello,
Please take a look at this topic: http://www.devart.com/forums/viewtopic.php?t=21092 . There you will find information about situations in which such error occurs.
Please take a look at this topic: http://www.devart.com/forums/viewtopic.php?t=21092 . There you will find information about situations in which such error occurs.
-
krzysiek__m
- Posts: 3
- Joined: Fri 15 Jul 2011 13:11
- Location: Poland
-
AndreyZ
I cannot reproduce the problem. Please try composing a small sample to demonstrate the problem and send it to andreyz*devart*com, including a script to create server objects. Also please specify the following:
- the exact version of IBDAC. You can learn it from the About sheet of TIBCConnection Editor;
- the exact version of your IDE;
- the exact version of Firebird or InterBase you are using.
- the exact version of IBDAC. You can learn it from the About sheet of TIBCConnection Editor;
- the exact version of your IDE;
- the exact version of Firebird or InterBase you are using.
Hello,
maybe this helps when you manually start a transaction, because it couldn't start twice:
MichaelJ
maybe this helps when you manually start a transaction, because it couldn't start twice:
Code: Select all
if not DM.IBCTRANSACTION.Active then DM.IBCTRANSACTION.StartTransaction;-
AndreyZ