Subject Re: [IBO] if i lost connection ...
Author Jason Wharton
No need for a pause. Make an option somewhere for the user to "login again"
somehow.

Jason Wharton
CPS - Mesa AZ
http://www.ibobjects.com


----- Original Message -----
From: "Gerhard Knapp" <prometheus@...>
Newsgroups: egroups.ibobjects
To: <IBObjects@yahoogroups.com>
Sent: Thursday, January 31, 2002 3:45 AM
Subject: [IBO] if i lost connection ...


> hello,
> using: D5, IBODatabase
> if i lost the db connection (db server is down or network p.e.) and
> my program tries (timer) to get the connection again, what is the best
way?
>
> i use
> dmcc.database.Disconnect;
> pause(1000);
> dmcc.database.connect;
> pause(2000);
>
> sometim it works, sometime not, but i think my solution is a little stupid
> ..
> if the db goes down and restart, i lost my dbhandle, so i think, and i
> have to get a new one ..
>
> is there a special IBO possibility?
>
> - gerhard