简体   繁体   English

如果我通过COM接口更新正在运行的程序使用的DLL,会发生什么?

[英]What will happen if I update a DLL being used by a running program over a COM interface?

I have an un-managed piece of code accessing my managed DLL over a COM interface. 我有一个未经管理的代码片段通过COM接口访问我的托管DLL。 What will happen if I update my DLL without switching off the other program? 如果我更新我的DLL而不关闭其他程序会发生什么?

Thanks 谢谢

Probably nothing. 可能没什么。

It's most likely the DLL file will be in use, and you will not be able to replace it. DLL文件很可能正在使用中,您将无法替换它。 You will get an error saying the file is in use by another process. 您将收到一条错误消息,指出该文件正由另一个进程使用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM