I\'m using the LoadLibrary function to load a DLL in Windows. My question is this: If I call this method more than once for the same DLL, do I get handles to different insta
For Linux shared objects, from the dlopen(3) manpage:
If the same library is loaded again with
dlopen(), the same file handle is returned. Thedllibrary maintains reference counts for library handles, so a dynamic library is not deallocated untildlclose()has been called on it as many times asdlopen()has succeeded on it. The_init()routine, if present, is only called once. But a subsequent call withRTLD_NOWmay force symbol resolution for a library earlier loaded withRTLD_LAZY.