J
Jack Leach
Occasionally my server will be unexpectedly unavailable while the clients are
still up. At this point my BE is out of commision whilst my FE's are still
attempting a connection.
The users get a message that states "Disk or Network Error". However, this
doesn't seem to be an actual trappable error (it's not caught by my global
handler, which is doesn't rely on a server connection, and there seems to be
no error number associated with it). You can click OK or Help... but you
have to click OK about 30 times before you can close the app in a somewhat
elegant manner.
I have an idea for a workaround... I keep a persistant connection form, and
I think I can run a timer event on this hidden form to test the connection
periodically to come up with a way to handle it. But, I'm not sure if a
timer will run on the form when this message is displayed, and network
connection tests take a bit of time and resource, so I don't want to be
trying to test the connection every 10seconds throughout the instance of the
app.
Any ideas, or is the timer the best I can do?
Thanks,
--
Jack Leach
www.tristatemachine.com
"I haven''t failed, I''ve found ten thousand ways that don''t work."
-Thomas Edison (1847-1931)
still up. At this point my BE is out of commision whilst my FE's are still
attempting a connection.
The users get a message that states "Disk or Network Error". However, this
doesn't seem to be an actual trappable error (it's not caught by my global
handler, which is doesn't rely on a server connection, and there seems to be
no error number associated with it). You can click OK or Help... but you
have to click OK about 30 times before you can close the app in a somewhat
elegant manner.
I have an idea for a workaround... I keep a persistant connection form, and
I think I can run a timer event on this hidden form to test the connection
periodically to come up with a way to handle it. But, I'm not sure if a
timer will run on the form when this message is displayed, and network
connection tests take a bit of time and resource, so I don't want to be
trying to test the connection every 10seconds throughout the instance of the
app.
Any ideas, or is the timer the best I can do?
Thanks,
--
Jack Leach
www.tristatemachine.com
"I haven''t failed, I''ve found ten thousand ways that don''t work."
-Thomas Edison (1847-1931)