AppDomain for unloading an assembly
-
-
http://msdn.microsoft.com/en-us/library/yb506139.aspx[^] See the links on "How to Create...", "How to unload..." and "How to load assemblies into..."
Simon
-
http://msdn.microsoft.com/en-us/library/yb506139.aspx[^] See the links on "How to Create...", "How to unload..." and "How to load assemblies into..."
Simon
In "How to load assemblies into..." I can only read how to load assemblies into the current AppDomain, which isn't very helpful.. :^)
-
In "How to load assemblies into..." I can only read how to load assemblies into the current AppDomain, which isn't very helpful.. :^)
It's not very obvious I'll admit: "Methods such as CreateInstance and CreateInstanceAndUnwrap of the AppDomain class can load assemblies into an application domain."
Simon
-
In "How to load assemblies into..." I can only read how to load assemblies into the current AppDomain, which isn't very helpful.. :^)
If you look in the method details for CreateInstanceAndUnwrap it includes an example for running code in a different appdomain. (You should note that the assembly that contains the object you create with CreateInstanceAndUnwrap will be loaded into both appdomains, but you can use the object to load further assembiles only into the domain the code is running in. See the CreateInstanceAndUnwrap[^] page)
Simon
-
If you look in the method details for CreateInstanceAndUnwrap it includes an example for running code in a different appdomain. (You should note that the assembly that contains the object you create with CreateInstanceAndUnwrap will be loaded into both appdomains, but you can use the object to load further assembiles only into the domain the code is running in. See the CreateInstanceAndUnwrap[^] page)
Simon
Great! Works now... Thx :)