Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » ElevateDB Technical Support » Support Forums » ElevateDB General » View Thread |
Messages 1 to 2 of 2 total |
C/S connection status |
Wed, Apr 9 2008 10:20 AM | Permanent Link |
Ulrich Doewich | What's the most efficient way to check whether or not the connection to
the server is still active? Is there a property I can check, or a function I can call to do this? Right now I'm resorting to a GetRemoteDateTime call, wrapped in a try..except construct that closes the session on the "Abort" exception that an interrupted network connection causes... Ulrich |
Wed, Apr 9 2008 1:07 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Ulrich,
<< What's the most efficient way to check whether or not the connection to the server is still active? Is there a property I can check, or a function I can call to do this? >> The only way to check is to initiate an action with the ElevateDB Server. If the connection was not active, or interrupted, then you can code an TEDBSession.OnRemoteReconnect event handler to intercept the reconnect and determine whether to reconnect or not. Of course, one way to make sure that the connection is not interrupted is to set the TEDBSession.RemotePing property to True. -- Tim Young Elevate Software www.elevatesoft.com |
This web page was last updated on Monday, April 29, 2024 at 05:23 AM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |