Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A more elegant way of closing/unloading a COM object
Message
 
 
À
09/07/2002 21:42:14
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00676886
Message ID:
00676889
Vues:
14
James,

If the COM object has some stuff it could clear up pre-destruction you can setup a method to do this, but you aren't guaranteed that it would be called, so it's just as well to let the Destroy() method do all of the clean up and let the act of the client doing oWidget = .null. make the object go away.

>Just wondering if anyone can give me a tip on exit or releasing a COM object a little more elegantly than oWidget = .Null.?
>
>Perhaps something like oWidget.Release()... but what to put in the Release() method to have the object unload itself.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform