Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with InetCtls.Inet.1
Message
From
25/09/2006 14:42:39
Mike Sue-Ping
Cambridge, Ontario, Canada
 
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
01156888
Message ID:
01157052
Views:
116
David,

I am most definitely not doing this in a loop. Like you I destroy the object after using it, but, for some reason it still thinks that it is executing when I create it the next time.

I think I've found a "solution". What I do now is after creating the object, I immediately check its stillexecuting property. If .T., I set the object to NULL, release it, then recreate it. For some reason, this works (so far).

Thanks for the reply
Mike

>Mike,
>
>Is it possible that you are doing this in a loop? We had huge random problems with it and/or the O/S still thinking it was in use from a prior call into the object (even after we destroyed the object after each use). I'd even gone so far as to spawn a whole separate exe to attempt to work around the problem. It lessened the busy occurances but didn't eliminate them. We've since gone down a level and have recoded a wrapper class around the wininet.dll API functions.
>
>>Does anyone know how to use the "InetCtls.Inet.1" object? I've got the following code:
>>
>>
>>RELEASE oiNet
>>LOCAL oiNet
>>oiNet = CREATEOBJECT("InetCtls.Inet.1")
>>oiNet.Protocol= 5  && icHTTPS
>>oiNet.RequestTimeout = 60
>>oiNet.url = "someURL.com/names.nsf?Login"
>>oiNet.Execute(oiNet.url, "POST", "=&username=someuser&password=somepw&redirectto=someNewURL")
>>
>>
>>This code sometimes works. The problem that I'm experiencing is that many times, the property oiNet.StillExecuting is .T. at the line where I CREATEOBJECT! This prevents me from continuing to do an actual Execute() method and I get the following error:
>>
>>
>>OLE IDispatch exception code 0 from Inet: Still executing last request..
>>
>>
>>Why is this happening? How can the Stillexecuting=.T. at the time I first create the object? All other properties are empty at that time. What would it be executing?
>>
>>The weird thing is that occasionally it works, but once the Stillexecuting=.T., it's very difficult for me to get it to work again.
Previous
Reply
Map
View

Click here to load this message in the networking platform