Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Working with COM .dll
Message
 
 
To
07/01/1999 08:19:20
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00173263
Message ID:
00173583
Views:
19
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
Previous
Reply
Map
View

Click here to load this message in the networking platform