Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VBasic Timeout

Status
Not open for further replies.

LPV

Technical User
Jun 18, 2001
12
0
0
US
Does VBasic 6.0 have a time limit on instructions?

I was told of a application that is used for sending lesson modules for a distance learning class over the Internet.

The program connects to a server, downloads a zipped file, unzips the file, deleates past lessons, adds new lessions, zips the updated directory files and sends the zipped file back to the server.

The program has stopped deleting the old files from teh zipped file. They are wondering if a VBasic instruction is taking too long and is timing out and the program just continues on with the next instructions. It does zip the directory correctly, but it contains the files that should have been deleted, making the zipped file even longer.

I am wondering if they are getting timed out of the server.

Any thoughts would be appreciated.

J. Engel
 
You should use some msgboxes as flags to know if your compiled app is really going where you want and that your code has benn executed.
 
Does the application have error handling? Such as On Error Resume Next... this could be hiding a possible error that is occurring. There are several ways of debugging this including alehawk's msgboxes. You could also look into creating a log file of the activity.

Example:

Code:
Open app.path & "\mylog.log" for output as #1
    if activity1.wascompleted then 'psuedocode of course
        Print #1, "Activity #1 completed successfully"
    else
        Print #1, "Activity #1 failed"
    end if
Close #1

Matt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top