首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

c#怎么unload已经装载的dll

2012-09-12 
c#怎样unload已经装载的dllc#怎样unload已经装载的dll?我有个应用采用动态装载的方式load了一个程序集,怎

c#怎样unload已经装载的dll
c#怎样unload已经装载的dll?我有个应用采用动态装载的方式load了一个程序集,怎样unload这个程序集?

[解决办法]
可以采用卸载程序域的方式,直接unload程序集好象不行,重新装载的话,老的程序集还在内存的
[解决办法]
There is no way to unload an individual assembly without unloading all of the application domains that contain it. Use the Unload method from AppDomain to unload the application domains. For more information, see Unloading an Application Domain.


具体信息参考:
How to: Load and Unload Assemblies (C# Programming Guide)
http://msdn.microsoft.com/en-us/library/ms173101(v=vs.80).aspx

热点排行