Load / Unload Dll as runtime?

  • Thread starter Thread starter Patrick Blackman
  • Start date Start date
P

Patrick Blackman

I have a program that search the application path for all the Dll that
implement a certain interface IText ,when a Dll with the interface is found
,I run a method called
IText.Format() which works very beautifully but then I would like to unload
the Dll after running the ITextFormat procedure. Any ideas about doing this?
I was told that it had something to do with creating a new AppDomain ...

Any help would be appreciated.
 
Hi,

You may create the new AppDomain, load single assembly into it, check for
interface, run the IText.Format() and so on. After that, you may unload the
AppDomain and go to the next assembly.
The assembly can be unloaded only with the parent AppDomain. You couldn't
unload single assembly from the AppDomain.
 
A small example would be helpful, thanks
Andrew Gnenny said:
Hi,

You may create the new AppDomain, load single assembly into it, check for
interface, run the IText.Format() and so on. After that, you may unload the
AppDomain and go to the next assembly.
The assembly can be unloaded only with the parent AppDomain. You couldn't
unload single assembly from the AppDomain.
--
Andrew Gnenny
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE
 
Back
Top