Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-117017

Problem with QGamepad COM initialization on Windows

    XMLWordPrintable

Details

    • Windows

    Description

      Running any QGamepad/QGamepadManager code I get continuous (i.e. every 5 seconds or so) repeats of messages like:

      onecore\com\combase\objact\objact.cxx(834)\combase.dll!00007FF8BA71C7F7: (caller: 00007FF8BA71BB76) ReturnHr(1) tid(3c74) 800401F0 CoInitialize has not been called.

      Aside from just being annoying it makes debugging my own code problematic, as many times debug output I want to see is obscured by these messages.....

      This occurs in our own code or any of the QGamepad sample programs. Adding a call to CoInitializeEx() in main() and adding ole32.lib to LIBS in the .pro file seems to solve the problem.

      I would've assumed this should all be handled by Qt += gamepad in the .pro file.

      Attachments

        Issue Links

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

          Activity

            People

              tokorpip Tomi Korpipää
              mbj_topcon Malcolm Jones
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes