i have winform
application , on startup extract *.dll embedded resources (properties.resources).
my application needs later (ionic.zip-library). when application closes, how can delete *.dll? because error the access denied
do first need un-reference it? or there way let *.dll inside *.exe? because @ end should 1 *.exe.
you cannot unload loaded dll running appdomain.
you can start new appdomain, load dll there, , afterwards, when closing application, unload appdomain. after have unloaded appdomain, extracted dll no longer referenced the running process, , can deleted.
this has consequence - can use extracted dll inside created appdomain. some googling might give more information.
Comments
Post a Comment