Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QLibrary multiple loading
Forum Updated to NodeBB v4.3 + New Features

QLibrary multiple loading

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 886 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    Gourmand
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved