Results 1 to 7 of 7

Thread: [RESOLVED] Server Not Responding Issue

Threaded View

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Jul 2001
    Location
    Tucson, AZ
    Posts
    2,166

    Resolved [RESOLVED] Server Not Responding Issue

    I'm getting data from a Server over which I have no control.
    Sometimes it does not respond and the code I'm using causes the App to freeze.
    Only thing I can think of maybe setting a timer in my program such that if a certain period of time expires
    I exit my Sub that called the Server.

    UPDATE: Changed to Timer and dropped Sleep (forgot it suspends execution)

    Still looking for better alternative.

    Code:
               'Wait Until Server Returns Records
                'or Kill if Error
                Do
                   If (mstrGotRecords = "error") Then
                      frmHD.Caption = "ERROR - Check and Redo Request"
                      Exit Sub
                   Else
                      If (mstrGotRecords = "fin") Then
                          Exit Do
                      Else
                           Call fWait(3)      'API function
    '>>>
                      End If
                   End If
                Loop
    Any other solution appreciated.
    Last edited by dw85745; Mar 10th, 2013 at 01:40 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width