EIBCError "unasigned code"

Discussion of open issues, suggestions and bugs regarding IBDAC (InterBase Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Rainer Versteeg
Posts: 4
Joined: Tue 28 Oct 2008 13:20

EIBCError "unasigned code"

Post by Rainer Versteeg » Wed 29 Oct 2008 07:46

Hi,

What does the error "unasigned code" means :?:

I have connection to a remote firebird databank. When i disconnect the ethernet connection then the connection to the database lost.

After i connect the ethernet connection the follwing command makes the error:

fquery.open;

Can someone help me :?:

Br,
Rainer

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Fri 31 Oct 2008 11:06

This is normal situation that an error occurs when connection is broken. If you need to restore the connection, you should call the Disconnect and then Connect method of the connection:

Code: Select all

  try
    IBCConnection.Disconnect;
  except
  end;
  IBCConnection.Connect;
You can also try to use the failover feature of IBDAC. This feature allows to reconnect automatically. To you this feature, set the LocalFailover option of TIBCConnection to True, write a hander for the OnConnectionLost event of TIBCConnection, and use separate transactions for reading and writing data. See also the 'Using IBDAC \ Working in an unstable network' article in the IBDAC help for more information about using failover.

Post Reply