Unloading Assembly DLL

M

Microsoft

Hi all,

I have some application which dynamically loads a module as a DLL Assembly.
Both are written in C#.
I also would like to be able to dynamically unload this assembly (i.e. to
update the module with a newer version).
How can I do that ?

I used this code to load the module :
// create instance for module

Object obj = AppDomain.CurrentDomain.CreateInstanceAndUnwrap("Module.dll",
false, flags, null, null, null, null, null);

// check module interface

IKrisModule module = (IKrisModule) obj;


Thanks in advance,
Daniel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top