Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. INET CONTROL

INET CONTROL

Scheduled Pinned Locked Moved Visual Basic
question
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    virendra_007
    wrote on last edited by
    #1

    How can I refresh inet control in VB6. Virendra

    D _ 2 Replies Last reply
    0
    • V virendra_007

      How can I refresh inet control in VB6. Virendra

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      That depends on what you mean by "refresh". What are you doing that requires you to do this?

      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007

      V 1 Reply Last reply
      0
      • D Dave Kreskowiak

        That depends on what you mean by "refresh". What are you doing that requires you to do this?

        Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
             2006, 2007

        V Offline
        V Offline
        virendra_007
        wrote on last edited by
        #3

        Hi! Dave, I am using inet control to read one url and my application is running 24 hrs a day. After 10-15 hours it is giving error of request timeout. I have increased request time out but still problem persist. Thanks & Regards, Virendra Virendra

        D 1 Reply Last reply
        0
        • V virendra_007

          Hi! Dave, I am using inet control to read one url and my application is running 24 hrs a day. After 10-15 hours it is giving error of request timeout. I have increased request time out but still problem persist. Thanks & Regards, Virendra Virendra

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          You might want to try a packet sniffer on that machine when the problem occurs. See if there is any kind of a response when your app makes the request, or if the request if even made. If this was VB.NET, I'd say don't use the INet control, use the HttpWebRequest classes. There is no reset on the INet control. You'd have to kill it off by setting it's instance to Nothing, then create a new one. But, that's no guarantee that it'll take care of the problem either. There are no problems with the INet control like this that I can find. If you get a Timeout error, the best course of action isn't to fail immediately. You have to wait a bit, then retry the request. Do that a few times before you call it dead. You have to find out what the root cause of the problem is before you can implement a fix and call it "solved". Find out what's really causing the timeout? More often than not, you'll find it's because the web request didn't complete and is still pending a download somewhere.

          Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
               2006, 2007

          1 Reply Last reply
          0
          • V virendra_007

            How can I refresh inet control in VB6. Virendra

            _ Offline
            _ Offline
            _Richard Faulkner
            wrote on last edited by
            #5

            use refresh2() instead of refresh():):):):):)

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups