Subject RE: [firebird-support] database reconnect techniques
Author Si Carter
> -----Original Message-----
> I have a D7 app which communicates with FB1.5 using IB Objects.
>
> I'd like to add the following:
>
> 1. Automatically check if database is available (network
> connectivity or other issues)...
>
> 2. Once connection is terminated for any reason, try to reconnect.
>
> What is the preferred technique to do this? Should i use some
> sort of timer or a thread?

You could use the AfterDisconnect event to trigger a timer/thread which will
keep trying to reconnect.

Rgds

Si Carter
http://www.fbtalk.net/ - Web Based Firebird Forum
http://sourceforge.net/projects/fbutils - FBUtils
http://sourceforge.net/projects/dnfBB - Web based, Firebird Powered Forum