tags:

views:

35

answers:

1

For example if you have a simple managed console app and a 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?

+1  A: 

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

Joel Lucsy
Thanks, can you point to any reference for this? Just wondering as I couldn't find it stated anywhere explicitely.
Rhubarb