Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to remove an instance of COM object from memory?
Message
Information générale
Forum:
Visual Basic
Catégorie:
COM, DCOM et OLE automation
Divers
Thread ID:
00890297
Message ID:
00890310
Vues:
17
Try

loObject = Null
Release loObject

The first line (loObject = Null) may be unnecessary, but XL does funny things sometime, so I've made myself get used to using both lines.

Alan

>HI
>In a program I create an instance of registered COM object, and assign a reference to the local variable.
>loObject = CREATEOBJECT(“Component.ComponentClass”)
>After the program is finished VFP still keep instance of the COM object in a memory. So next time I run my program it uses previously created object, instead of creating new one.
>What should be done to avoid this behavior?
>
>TIA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform