DllImport instance duration

In asp.net, if I call a DLL using DLLImport, does anyone know the scope of this instance? This is at the application level, so any subsequent calls go to the same dll instance until the application ends?

I have a dll where I need to preload some data into a DLL and I was wondering what I should do when I start the application and if the data is then available for all session access.

+2


source to share


1 answer


Since this is a native DLL, you get one instance for the Windows process (i.e. w3wp.exe). It will stay loaded until you recycle the workflow.



0


source







All Articles