INET CONTROL
-
How can I refresh inet control in VB6. Virendra
-
How can I refresh inet control in VB6. Virendra
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 -
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, 2007Hi! 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
-
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
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 -
How can I refresh inet control in VB6. Virendra
use refresh2() instead of refresh():):):):):)