开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜