Reputation: 3895
I have a dll produced by a third party that has some sort of internal datastructure that limits it's size to X elements.
So basically, it has a Queue with X as the limit.
Now from what I've known DLL's are per process, but is it possible to load a DLL more than once? Maybe per thread? In C#? or in C++/CLI?
I'm trying to load a native c++ dll.
Upvotes: 9
Views: 4759
Reputation: 231451
Unfortunately, the NT core DLL loader routines don't expose a public interface to skip the pool of already-loaded DLLs. As such, you're left with just a few choices:
Upvotes: 7
Reputation: 31928
The only way you can do it is by having multiple copies of the same dll, and then load them dynamically.
Upvotes: 5