HighTechTalks DotNet Forums  

how to clean the COM object in assembly?

Dotnet Framework (Interop) microsoft.public.dotnet.framework.interop


Discuss how to clean the COM object in assembly? in the Dotnet Framework (Interop) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
James Zhang
 
Posts: n/a

Default how to clean the COM object in assembly? - 08-22-2007 , 04:29 PM






The problem is that how to clean the COM object in assembly since this is like two ways Interop.

If I use "ref object" parameter in assembly, I don't need to clean it in assembly. After OCX is unloaded, it should go away with OCX.
But the host process is still there(OCX and assembly are leaving there too?), when reloading OCX, OCX pointer should send to assembly again. But don't know why OCX's constructor get called, then OCX get unloaded (other OCX memory get corrupted)?


EggHeadCafe - .NET Developer Portal of Choice
http://www.eggheadcafe.com

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.