DllImportAttribute

O

Ori Calvo

Hello All,

I am using DllImport attribute to do some work againt an unmanaged dll.
The unmanaged DLL is written that way that when calling one method a global
variable is updated so when calling an another function inside the DLL the
same global variable is used to apply some work. My question is as follow:

Does the DLL remain loaded after calling a function inside it or might the
CLR unload the DLL just after calling the exported function so all globals
variables state is lost?

Thanks, Ori
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top