Subject Application does not connect
Author paultugwell
I am using IBODatabase to make a connection to a database over a VPN.
This has generally been sucessful although the connection takes up to
90 seconds to become established, but on one site I have recently
encountered a problem. Sometimes, usually in the moring when the user
tries to connect for the first time, the application does not make a
connection and hangs. If the user kill the application and then starts
it up again it always connects on this second occasion. I have had the
user run a batch file which pings the database server IP 12 times
before starting the application to ensure that the VPN is active and
this allways shows that the VPN is working at a reasonable speed. Is
there a way to time out the program so that, if the connection is not
established after a certain time, the user gets and error message and
the application then terminates? I have tried using a timer, but this
does not work.