General information
Category:
COM/DCOM and OLE Automation
>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only