469,898 Members | 1,815 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,898 developers. It's quick & easy.

Load / Unload Dll as runtime?

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.
Nov 15 '05 #1
2 8262
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
"Patrick Blackman" <ca*******@videotron.ca> wrote in message
news:e$**************@TK2MSFTNGP10.phx.gbl...
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.

Nov 15 '05 #2
A small example would be helpful, thanks
"Andrew Gnenny" <pulsar2003@/no-spam/email.ru> wrote in message
news:3f********@nexus.validio.com.ua...
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
"Patrick Blackman" <ca*******@videotron.ca> wrote in message
news:e$**************@TK2MSFTNGP10.phx.gbl...
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.


Nov 15 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by DB2 Novice | last post: by
2 posts views Thread by Lauren Hines | last post: by
2 posts views Thread by brianbender | last post: by
2 posts views Thread by Chris Dunaway | last post: by
7 posts views Thread by tojigneshshah | last post: by
1 post views Thread by Ivan | last post: by
1 post views Thread by Waqarahmed | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.