Application windows XP Delphi7 with firebird on windows 7

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Giovanna
Posts: 25
Joined: Tue 21 Jul 2009 07:44
Location: Italy

Application windows XP Delphi7 with firebird on windows 7

Post by Giovanna » Mon 12 Dec 2011 08:31

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

AndreyZ

Post by AndreyZ » Mon 12 Dec 2011 16:20

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;

Giovanna
Posts: 25
Joined: Tue 21 Jul 2009 07:44
Location: Italy

Post by Giovanna » Tue 13 Dec 2011 08:19

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

AndreyZ

Post by AndreyZ » Tue 13 Dec 2011 12:12

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.

Post Reply