On .NET Rocks! Show 561, Carl and Richard talked about releasing unmanaged objects instantiated in managed code. If you have to release a COM object that’s instantiated in managed .NET code, you have to call System.Runtime.InteropServices.Marshall.ReleaseComObject. Is there anything similar you have to do (or should do) when releasing .NET objects from COM code, or is it sufficient to rely on the Garbage Collector to release the objects?
On .NET Rocks! Show 561 , Carl and Richard talked about releasing unmanaged objects
Share
As long as you manage the ref count of the COM Callable Wrapper like you do any other COM object (
set netObj = Nothing) COM and .NET will take care of the rest.