Stephen Russell wrote:
> On Feb 4, 2008 9:31 AM, MB Software Solutions <
> [EMAIL PROTECTED]> wrote:
>
>   
>> What's the best practice in this?  iirc, Paul McNett does a timer
>> process in the background where he constantly keeps polling something
>> like "show tables" in order to keep the connection alive.  I was doing
>> this for getting my handle (and thus the goal was to re-establish
>> connection if the simple command failed):
>>
>>     
>
> --------------------------------------------------------------------
>
> Learn to live in the disconnected world?  

What kind of comment is that....I know how to live in a disconnected 
world!!  I found the bug in my code I posted....in the ELSE block to the 
main IF, I added a recursive call to the function if a simple SQL 
fails.  From my original post:

    On 2nd review, I think this fails because once the handle is set,
    it's a positive number, so the retry code inside never gets run. 
    DOH!  Note to self:  call simple SQL first and treat as tlForce=.T.
    if it fails!



-- 
Michael J. Babcock, MCP
MB Software Solutions, LLC
http://mbsoftwaresolutions.com
http://fabmate.com
"Work smarter, not harder, with MBSS custom software solutions!"



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to