D
dvestal
I have a C# app that must use a C# class library, which in turn
references an unmanaged C++ DLL. My code interacts briefly with the
C# class library, after which my code must fully release it, retaining
no references to either the class library or the DLL (which the class
library uses via DllImport).
Unfortunately, neither the class library nor the C++ DLL are under my
control, and I can't change the constraints above.
I've managed to release the C# dll by interacting with it in a
temporary AppDomain, which I then unload. However, my process still
retains a reference to the C++ DLL. How can I either avoid that, or
close the reference?
references an unmanaged C++ DLL. My code interacts briefly with the
C# class library, after which my code must fully release it, retaining
no references to either the class library or the DLL (which the class
library uses via DllImport).
Unfortunately, neither the class library nor the C++ DLL are under my
control, and I can't change the constraints above.
I've managed to release the C# dll by interacting with it in a
temporary AppDomain, which I then unload. However, my process still
retains a reference to the C++ DLL. How can I either avoid that, or
close the reference?