Need Zeos consultant for How to's

Forum related to version 6.5.1 (alpha) and 6.6.x (beta) of ZeosLib's DBOs

Moderators: gto, cipto_kh, EgonHugeist

User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Post by mdaems »

Pingserver should TRY to reconnect and return true if it succeeds. Of course, when the server is really gone at PingServer you get false (see mysql_ping() API call in mysql docs).

Sure about that reconnect? Here it's at line 188 of ZConnection.pas. (Trunk version, so certainly in Testing version). Just call it like this

Code: Select all

TZConnection1.Reconnect;
Mark
Post Reply