开发者

What's the lifetime of an unmanaged DLL once it's been pInovked from managed code?

开发者 https://www.devze.com 2023-01-20 05:08 出处:网络
For example if you have a simple managed console app and a 开发者_JS百科simple unmanaged C++ DLL. You pInvoke into a function in the C++ DLL, does the DLL stay loaded in the unmanaged process until sa

For example if you have a simple managed console app and a 开发者_JS百科simple unmanaged C++ DLL. You pInvoke into a function in the C++ DLL, does the DLL stay loaded in the unmanaged process until said process comes down? Or does the DLL get unloaded at the completion of every pInvoke call?


It stays in memory unless you explicity tell it to unload.

0

精彩评论

暂无评论...
验证码 换一张
取 消