QLibrary multiple loading



  • As I know from docs and my own experience QLibrary loads each DLL only once. While next load attempt it just increases usage counter. This means all DLL's static data are loaded only once too. But I need allow different threads load each own copy of DLL with it's own copy of static data. Otherwise all data in DLL become shared between threads which I do not need. I need force each loaded DLL copy work as "object" with it's own static data set. Now I dynamically create numbered copies of DLL files but this is not elegant solution. Is there any way to force QLibrary load DLL from same file but to separate memory as it would be loaded from separate file? Important - I make crossplatform application, it must work in Windows and Linux at least.


  • Lifetime Qt Champion

    Hi,

    The interest mailing list would be more suited for this question. You'll find there Qt's developers/maintainers. This forum is more user oriented.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.