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. How the QPluginLoader::unload() works?
Forum Updated to NodeBB v4.3 + New Features

How the QPluginLoader::unload() works?

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.0k 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

    Where to find more information about this method? How it works at all? Does it only free allocated memory or does something more?

    I use it to unload memory consuming plugin if it not needed. Plugin created it's own QMainWindow, and it had some QThreads inside. I close window and terminate threads before unload plugin. All works almost fine after close but suddenly application fails with SIGSEGV. I found it always fails when I try switch from application main window to QtCreator or just move mouse to window of some other app (even to Windows Toolbar). Looks like it fails when changing focus. Fail point is in mouse translation branch of QtWndProc (qapplication_win.cpp) called from user32.dll. What's wrong? I closed unloaded plugin window and it disappeared from screen. How should I operate with plugin before properly unload it?

    Without plugin unload application works fine and not fails anywhere.

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

      Hi,

      The simplest way to know is to look at Qt's code directly

      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