Several appdomains calling the same unmanged dll

Posted by Mr. T. on Stack Overflow See other posts from Stack Overflow or by Mr. T.
Published on 2010-03-25T07:56:54Z Indexed on 2010/03/25 8:03 UTC
Read the original article Hit count: 311

Filed under:
|
|
|

Our .NET 3.5 C# application creates multiple appdomains. Each appdomain loads the same unmanaged 3rd party dll. This dll reads a configuration file upon initialization. If the configuration changes during runtime, the dll must be unloaded and loaded again. This dll is not in our scope to rewrite correctly.

Does each appdomain have access to a separtate copy of this unmanaged dll, or does Windows keep one copy of the dll and maintain a usage count? If the latter is is the case, how do we get each instance of the unmanaged dll to reflect its unique configuration?

© Stack Overflow or respective owner

Related posts about appdomain

Related posts about dll