Uploaded image for project: 'Qt Solutions'
  1. Qt Solutions
  2. QTSOLBUG-134

QMfcApp::pluginInstance hangs when inside DLLMain

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • No Version
    • MFC Migration
    • None
    • Windows 7 X64 compiling with Visual Studio 2008 targeting x86.

    Description

      Using QtWinMigrate with a Qt DLL called from an MFC app becomes impossible with this code snippet of the DllMain function:

      http://doc.qt.nokia.com/solutions/4/qtwinmigrate/winmigrate-qt-dll-example.html

      The reason is because inside the new 4.6.3 "QMfcApp::pluginInstance" a new "QApplication" object it´s created in the heap, when initializing the new QApplication multitouch feature one of the functions (I think that it´s QApplication::initializeMultitouch) end calling the win API function CoCreateInstance, which freezes the application because:

      http://support.microsoft.com/kb/305723

      Reverting to Qt 4.5 solved the problem.

      Regards.
      Rafa.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            rafa1981 Rafael Gago
            Votes:
            3 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes