Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A little crawler prob
Message
De
23/11/2010 12:51:49
 
 
À
23/11/2010 12:25:44
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01490197
Message ID:
01490266
Vues:
37
>>>>>>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?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform