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. Qt in separate thread gives :First-chance exception at 0x74f2c41f infoo .exe: 0x000006A6: The binding handle is invalid
Forum Updated to NodeBB v4.3 + New Features

Qt in separate thread gives :First-chance exception at 0x74f2c41f infoo .exe: 0x000006A6: The binding handle is invalid

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 2.1k 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.
  • U Offline
    U Offline
    umen242
    wrote on last edited by
    #1

    i try to run QObject inherited class called "Dispatcher" that is using QtWebKit functions in separate thread.
    then the main GUI thread , but when i init the object im getting :

    First-chance exception at 0x74f2c41f infoo .exe: 0x000006A6: The binding handle is invalid
    

    and the Signal and Slots in the object doesn't work , they do return true but never invoked.
    i guess it related some how to the error i see .
    according to the internet i need to start the new thread like this :

    @
    CollectorWorker* pCollectorWorker = new CollectorWorker(pUrlStack,m_pSettings);
    pCollectorWorker->moveToThread( QApplication::instance()->thread());
    QCoreApplication::postEvent(pCollectorWorker, new QEvent( QEvent::User ) );@

    where CollectorWorker is the separate thread object that init the Dispatcher class.
    when i init the Dispatcher class im getting this error.
    CollectorWorker.cpp

    @
    bool CollectorWorker::event( QEvent *ev )
    {
    if( ev->type() == QEvent::User )
    {
    Dispatcher dispatcher; // here im getting the error.
    return true;
    }
    return false;
    }@

    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