Groups | Blog | Home
all groups > dotnet interop > september 2006 >

dotnet interop : CCW/AppDomain unloading


lazerbeam
9/23/2006 7:18:01 AM
Hi,

I have a managed class which is being used by an unmanaged client (via COM
InterOp, Internet Explorer).

I basically understand how this works (IE calls CoCreateInstance(Ex), CLR
gets loaded, AppDomain(s) created, CCW created, yada yada ...).

Question: Is it possible that the host programm/the CLR itself unloads the
application domain where my managed (COM-)Object(s) are running (after there
are no more references to any managed objects)? So IE calls CoCreate...,
calls some functions on the COM-Object, and releases the COM-Objects. At this
point there are no more references to any managed objects: Will the
application domain remain until the host process dies or may it be unloaded
Mattias Sjögren
9/25/2006 9:25:41 PM
[quoted text, click to view]

The appdomain will remain until it's explicitly unloaded or the
process terminates.


Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
AddThis Social Bookmark Button