Subject | RE: [firebird-support] Immediate connection to server fails after startup |
---|---|
Author | Alan McDonald |
Post date | 2005-01-27T07:25:47Z |
> > Fortunately, there are a couple of ways to work around this problem.I know you can't expressly declare the starting order of services but you
> >
> > If you are creating a program -- the only solution I am aware if is:
> > incorporate a small function which polls the Firebird IP port for a
> > response, into the application start. Once the polling function gets a
> > response, the rest of the application start can continue.
>
> Thanks Sean,
>
> for lack of a better solution I now keep trying to connect for a
> number of
> times with a one second delay in between.
> I would like to do what you suggested though. Can you give me
> some pointers
> on how I "poll a port" using Delphi?
>
> Florian
CAN declare dependcies.
When you register your service, make it dependent on the FBServer service.
Alan