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. with my activex control, IE process not quit after close window/pages
Forum Updated to NodeBB v4.3 + New Features

with my activex control, IE process not quit after close window/pages

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 139 Views
  • 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.
  • Y Offline
    Y Offline
    youcl
    wrote on last edited by youcl
    #1

    I am building an activex dll with Qt. I subclass QAxFactory to create the exported class object and use singleton pattern.

    //MyFactory is subclass of QAxFactory
    //MyClass is the exported class for com container to use
    QObject *MyFactory::createObject(const QString &key)
    {
        return MyClass::getInstance();
    }
    

    Here is the problem:

    After refresh the IE page several times, then close the IE page/window, the exported class MyClass's deconstruction gets called immediately, but MyFactory's deconstruction not. And in windows task manager, the iexplorer process does not quit. After about 30~50 seconds, the iexplorer process quit and MyFactory's deconstruction gets called.

    I guess this is because my code did not clear some resources correctly, but I could not found what resource.

    Is there a way I can debug this problem? Thanks in advance!

    update
    It looks like event handler did not get released properly in js. Following is the event handler functions in js.

    function MyClassObj::eventHandler()
    {
        console.log("event fired");
    }
    

    How do I release the handler properly when page get refreshed or closed?

    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