Page 1 of 1

EIBCError "unasigned code"

Posted: Wed 29 Oct 2008 07:46
by Rainer Versteeg
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

Posted: Fri 31 Oct 2008 11:06
by Plash
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.