Page 1 of 1

Application windows XP Delphi7 with firebird on windows 7

Posted: Mon 12 Dec 2011 08:31
by Giovanna
Hello,
I try to execute an application compiled on Windows XP with Delphi7 and component UNIDAC versione 3.7 on windows 7 64 bit with firebird 2.5.
When I insert and confirm the record than not have a field of type TFloatfield i don't have a problem, when I insert a record with a TFloatfield a see the error: 'Can’t perform operation on active transaction'. Can you help me?
Thank you,
Giovanna

Posted: Mon 12 Dec 2011 16:20
by AndreyZ
Hello,

This error has nothing to do with float fields. The "Can't perform operation on active transaction" error occurs when you are trying to start a transaction that is already started, or if you are trying to change properties of an active transaction. To solve the problem, you should use the following code:

Code: Select all

if not UniTransaction.Active then
  UniTransaction.StartTransaction;

Posted: Tue 13 Dec 2011 08:19
by Giovanna
Hello,
"Can't perform operation on active transaction" is displayed on the screen of my application but from dbmonitor I have a message:
'Unable to complete network request to host 127.0.0.1'
'Error writing data to the connection'
and this appears only when the record contains a TFloatFields...
i dont understand why..
Thank you for all
Giovanna

Posted: Tue 13 Dec 2011 12:12
by AndreyZ
I cannot reproduce the problem. Please try using the latest UniDAC version 4.1.3 and check if the problem persists. If the problem persists, please try creating a small sample that demonstrates this problem and send it to andreyz*devart*com, including a script to create and fill a table.