Reconnecting to Valentina after timeout

Fabian Eschrich info at faesch.de
Wed Jan 16 05:48:34 CST 2008


Hi,

in my app I use a test to determine if I am still connected to valentina and
- if not - reconnect.

  if app.dbconnection.IsConnected = false then
    app.WriteDebugLog("ConnectWithRetry failed!")
    app.dbconnection.Close
    app.dbconnection.Open
    if app.dbconnection.IsConnected = true then
      app.WriteDebugLog("ReConnection OK!")
      return true
	...

After a 20 minutes timeout, the connection fails and Reconnection seems to
be ok, but I still get "UNKNOWN" - write error on my query.
What do I have to do?

Thanks for your help.

Mit freundlichen Grüßen / kindly regards,

Fabian Eschrich
FAESCH Software

info at faesch.de
 
Fon:     +49 (0)37206 889293
Fax:     +49 (0)37206 889294
Skype:   feschrich
SIPgate: 9000760





More information about the Valentina mailing list