Unloading an Assembly in the CF...

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Heya

How does one go about unloading an Assembly from memory? My application has plugins which need to be periodically updated. During the retrieval, if the plugin has been loaded it will not allow the app to overwrite the DLL file (obviously). I assume it would be something to the effect of Assembly.Unload but nothing of the sort exists. ??

~~K
 
Kevin Z Grey said:
How does one go about unloading an Assembly from memory? My
application has plugins which need to be periodically updated. During
the retrieval, if the plugin has been loaded it will not allow the app
to overwrite the DLL file (obviously). I assume it would be something
to the effect of Assembly.Unload but nothing of the sort exists. ???

You have to put it in a separate AppDomain - you can't unload an
individual assembly (in either the compact or full frameworks).
 
Alex Feinman said:
I don't think you can unload an AppDomain in CF either...

Eek, looks like you're right. I guess not that many CF programs are
likely to want to do that.
 

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

Back
Top