Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
A more elegant way of closing/unloading a COM object
Message
 
 
To
09/07/2002 21:42:14
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00676886
Message ID:
00676889
Views:
13
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
Previous
Reply
Map
View

Click here to load this message in the networking platform