Article View: borland.public.cppbuilder.database.dbexpress
Article #96Test connection alive
From: yartax
Date: Thu, 19 Aug 2004 16:24
Date: Thu, 19 Aug 2004 16:24
12 lines
1256 bytes
1256 bytes
Hi everyone, How can I test if a Interbase connection is alive and reconnect if necessary? I make a BCB6 program to work with Interbase/Firebird servers. This program (client side app) uses ADSL to connect to servers, and connection can be lost at any moment. My idea is to put a TTimer component and test TIBDatabase->Active property every minute to check out, but doesn't works Also tried to use a TIBEvents but I don't know how configure it. Thanks!
Technical Details
Message-ID:
<4124d43c$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: fb4e2,c8be712694efc016,start X-Google-Attributes: gidfb4e2,public X-Google-Language: ENGLISH,ASCII-7-bit From: <yartax@hotmail.com> Newsgroups: borland.public.cppbuilder.database.dbexpress Subject: Test connection alive Date: Thu, 19 Aug 2004 18:24:28 +0200 Lines: 14 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 213.96.91.217 Message-ID: <4124d43c$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1092932668 213.96.91.217 (19 Aug 2004 09:24:28 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail