Application Create with Connection TimeOut = ERROR
Posted: 21.01.2009, 18:50
Hello, im have a problem, and i don't know how to soluve it,
OnCreate of my application i have a INIFile to load the Host IP, database etc... and after the INIFile configs i have
ZConnection.Connect;
but, now the server is down, and when i try to open the application i recive this error:
i want to recive this error more friendly, something like "Server is down, try again later"....
how i can do this?
thanks
edit
i found a fix after one hour ¬¬
just use Exception and don't use EZDataBaseError or EZSQLException
try
zconnection1.connect;
except on e:exception do begin
showmessage('server down, try again later');
application.terminate;
end;
end;
OnCreate of my application i have a INIFile to load the Host IP, database etc... and after the INIFile configs i have
ZConnection.Connect;
but, now the server is down, and when i try to open the application i recive this error:
i want to recive this error more friendly, something like "Server is down, try again later"....
how i can do this?
thanks
edit
i found a fix after one hour ¬¬
just use Exception and don't use EZDataBaseError or EZSQLException
try
zconnection1.connect;
except on e:exception do begin
showmessage('server down, try again later');
application.terminate;
end;
end;