在C#中卸载ProcessModule [英] Unload ProcessModule in C#

查看:382
本文介绍了在C#中卸载ProcessModule的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在解决方案中添加了对程序集"Interop.QuotesPlus.dll"的引用,因此名称空间QuotesPlus变得可​​见,其中包含多个类.它似乎是使用ClassWizard创建的机器生成的IDispatch包装器类.
首次使用任何此类方法之后,它会锁定需要释放的内部数据库.该DLL在Process.GetCurrentProcess().Modules中列出,但我不确定是否可以卸载模块(稍后再加载回该模块).请提出建议.

I''ve added an reference to assembly "Interop.QuotesPlus.dll" in my solution, so a namespace QuotesPlus became visible with several classes inside. It seams to be machine generated IDispatch wrapper classes created with ClassWizard.
After a first use of any of that classes'' method, it locks internal database that I need to get released. This DLL is listed in Process.GetCurrentProcess().Modules but I''m not sure if it is possible to unload a module (and load it back later). Please suggest.

推荐答案

无法卸载程序集,请参见
It is not possible to unload an assembly, see Why isn''t there an Assembly.Unload method?[^]


这篇关于在C#中卸载ProcessModule的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆