I would like to know a proper solution to this as well. In my case calling QNetworkAccessManager::get() puts main thread into QWaitCondition::wait() mode and QCoreApplication::winEventFilter() starts to get called from a worker QThread until QNAP::get() finishes it's task. That immediately crashes the application as MFC per-thread objects become inaccessible.
Bellow is my temporary solution, although it kinda defeats the whole point of multithreading as it becomes the same as doing network request on the main thread. Anyone is aware of a better alternative?
Qt Code:
bool QMfcApp::winEventFilter(MSG *msg, long *result) { return false; ... }To copy to clipboard, switch view to plain text mode
Bookmarks