ZConnection with FreeTDS - detect a broken connection

In this forum you may discuss all issues concerning the Lazarus IDE and Freepascal (both running on Windows or Linux).

Moderators: gto, cipto_kh, EgonHugeist

Post Reply
af0815
Fresh Boarder
Fresh Boarder
Posts: 18
Joined: 24.03.2017, 12:49

ZConnection with FreeTDS - detect a broken connection

Post by af0815 »

Hi,

what is the best way to detect/catch a broken connection, without poping up a messagewindow or crash the application ?

I connect to a MSSqlserver and sometimes the connection is broken (but the server is reachable by a ping) and i want to detect this and startup the connection again. Actual sometimes the programm was closed unexpected. The Systems are Debian or Rasbian, depend on the used hardware.

Andreas
marsupilami
Platinum Boarder
Platinum Boarder
Posts: 1918
Joined: 17.01.2011, 14:17

Re: ZConnection with FreeTDS - detect a broken connection

Post by marsupilami »

Hello Andreas,

currently this is not possible at all for Zeos 7.2 and not (yet) possible for FreeTDS on Zeos 7.3. For Zeos 7.3 this will be one of the new features but it is not ready yet.

Best regards,

Jan
Post Reply