Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Working with COM .dll
Message
 
 
À
07/01/1999 08:19:20
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00173263
Message ID:
00173583
Vues:
20
Mike,

With AddObject() the object should destruct when the container class it was added to destructs. With CreateObject() the object will destruct whenever the memvar the object reference was assigned to goes out of scope.

Personally I explicitly .null. out CreateObject objects when I'm done with them, just mostly as a "code cleanliness" design issue.

>This doesn't pertain to just COM objects, but if I use CreateObject or AddObject in my Main prg, do I need to remove all objects after the read events or does the termination of the EXE automatically remove all objects?
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