how to unload managed c++ dll?

柔情痞子 提交于 2019-12-19 11:19:23

问题


A.dll is a native c++ dll, B.dll is a managed c++ dll. A.dll depends on B.dll, so when load A.dll, B.dll is loaded automatically, but after A.dll is unloaded, B.dll is still loaded. Only A.dll depends on B.dll, why B.dll can't be unloaded? How to unload the managed c++ dll? I'm using vs2010.

Thanks


回答1:


You cannot unload a managed assembly once it is loaded by the CLR. The only way is to kill the AppDomain.



来源:https://stackoverflow.com/questions/7697621/how-to-unload-managed-c-dll

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!