how to check firebird server service is running ?

The official tester's forum for ZeosLib 7.1. Ask for help, post proposals or solutions.
Post Reply
tpv
Fresh Boarder
Fresh Boarder
Posts: 2
Joined: 01.09.2014, 15:43

how to check firebird server service is running ?

Post by tpv »

hi,

we have a some issues with firebird when we have lan problems or firebird service is down
with message "access violation" ,this message still appears even if we resolve the lan problems

is there a way to check firebird server service is running ? or disconnect form the database when firebird service is down ?
( using zeos 7.0.3, lazarus 1.14 , firebird 2.5.1)

thanks ;
User avatar
EgonHugeist
Zeos Project Manager
Zeos Project Manager
Posts: 1936
Joined: 31.03.2011, 22:38

Re: how to check firebird server service is running ?

Post by EgonHugeist »

Hi,

this is true. Zeos actually does'nt handle connection lost issues. This is planned on 7.3 (my idea). You could Ping the server and use the code in a try .. except block (i'm not a fan of it since it slows down the compiled apps a bit).

TZConnection.DbcConnection.Ping
Best regards, Michael

You want to help? http://zeoslib.sourceforge.net/viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/

Image
User avatar
Sergiomaster
Fresh Boarder
Fresh Boarder
Posts: 24
Joined: 13.06.2011, 12:37

Re: how to check firebird server service is running ?

Post by Sergiomaster »

Hello ,

I ran also in that issue (wifi out of range) .
my workaround was first to use the TZConnection.DbcConnection.Ping (i saw also yesterday a TZConnection.DbcConnection.Pingserver difference ?)
but the time out seems to be too long . I use François Piette ICMP unit instead (only one unit of his ICS component suite found here http://www.overbyte.be/frame_index.html)
This is planned on 7.3 (my idea).
yearn to see it :wink:

Serge
Main uses Delphi3/7/2010/Rio 10.3/Sidney 10.4 + Interbase/Firebird
Post Reply