Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
A little crawler prob
Message
From
23/11/2010 12:51:49
 
 
To
23/11/2010 12:25:44
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01490197
Message ID:
01490266
Views:
36
>>>>>>When I am finished running the crawler app I'm working upon, the Taskmaster Processes shows several iexplorer32 sessions still running. What is a good way to prevent that from the app?
>>>>>
>>>>>You may want to release IE instances you started in the program.
>>>>I did that, but ie tabs continue to be created.
>>>
>>>Can you show your exact code and how do you release the IE instance?
>>
>>I use Object.Release. I'll add some comments to the code before I post it.
>
>Remember that you won't be able to release an object if you have ANY reference to it. Like this sample code
>loX=Createobject('internetexplorer.application')
>**..do somehing
>loY=lox.body && Now you have a reference to loX, and won't be able to release it!!
>loZ=loY.document && Now you have another reference to loX, this time an indirect one, and won't be able to release it!!
>** So to be able to release LoX, you must release the other references IN REVERSE order
>loZ=.null.
>release loZ && this line makes it possible to release loY
>loY=.null.
>release loY
>** NOW you can release loX
>loX=.null.
>release loX
Thanks again for your help.
I ain't skeert of nuttin eh?
Yikes! What was that?
Previous
Reply
Map
View

Click here to load this message in the networking platform