Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Releasing a COM object in a COM object
Message
From
14/09/2001 11:18:20
 
 
To
13/09/2001 22:13:44
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, United States
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00556220
Message ID:
00556512
Views:
16
>Try this.oweb = .null.
>
>I don't think you can release a property.

I tried this but the object is still in memory (we can see the process in the task manager window).

Plus, I'm the one who wrote the code for this second COM object. I know that the Class_Terminate procedure (it's in VB) is called when the "master" object is released but the second object is simply not un-loaded from memory!!!

I know it would be easy to add a 'End' call at the end of the Class_Terminate procedure in my code but I want to understand why the object does not free itself automatically when it's terminate event is called (like it always does under other circumstances).

As a matter of fact, my question is more "How do you exit a COM object properly?"

Thanks again, Stephane.
Previous
Reply
Map
View

Click here to load this message in the networking platform