What is the lifetime of an unmanaged DLL after it has been run from managed code?

For example, if you have a simple managed console application and a simple unmanaged C ++ DLL. You pInvoke into a function in a C ++ DLL, does the DLL load into an unmanaged process until this process disappears? Or is the DLL unloaded at the end of each pInvoke call?

+1
source share
1 answer

It remains in memory if you do not explain it by unloading.

+1
source

Source: https://habr.com/ru/post/888317/


All Articles