TMyConnection, OnError and Pooling
Posted: Sun 14 Jun 2009 03:10
Hi Devart. i found a strange behavior.
in TMyConnnection i set the event OnError:
if i use MyConnection.Pooling = False and try to connect to a Down Server the Event OnError is handled.. but if a active Pooling the Envent ins't handled and a exception is raised..
i made a small project for this..
http://www.drdsistemas.com.br/util/Error.7z
thank's
in TMyConnnection i set the event OnError:
Code: Select all
if E.ErrorCode = 2003 then begin
Fail := False;
ShowMessage( 'The Application can not connect to mySQL Server, press "OK" and try later..' );
end else
Fail := True;
i made a small project for this..
http://www.drdsistemas.com.br/util/Error.7z
thank's