I am using inet to read the html of some websites and return the data as a string. I am using the open url method.

e.g

VB Code:
  1. html_source = Inet1.OpenURL(site_str & folder)

The program thread waits here until the inet control returns the html (or generates an error)

However, the code is running in a loop so comes back around to read the next webpage. This sometimes generates an error '35764 - Still executing last request'

How can this be possible? I have already got the html e.g the request. What is the control still doing?

I have added this code

VB Code:
  1. While Inet1.StillExecuting
  2.    DoEvents
  3. Wend

to prevent this error, even though I don't understand why its occuring!

Also could I change it do this?

VB Code:
  1. While Inet1.StillExecuting
  2.    Inet1.Cancel
  3.    DoEvents
  4. Wend

would this be better than the above code as it will attempt to cancel the operation rather than wait?

Thanks