Isolate unmanaged DLL in C#
How can I isolate an unmanaged DLL in C#, I know that loading an assembly in a different AppDomain will isolate a managed assembly, how can I isolate a unmanaged one?
I have an old (unmanaged) DLL that has some global variables and I need to use several instances but I need each instance to have its own copy of the global variables.
I tried creating a managed wrapper assembly and used P/Invoke to call the DLL, but that didn't work. Will .NET remoting isolate each instance?
|