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. Non-QT console program problem (Cannot obtain a handle to the inferior)
Forum Update on Monday, May 27th 2025

Non-QT console program problem (Cannot obtain a handle to the inferior)

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 1.1k 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.
  • W Offline
    W Offline
    wwwed
    wrote on 18 Nov 2015, 18:08 last edited by
    #1

    I use QT Creator 3.5.1 (opensource). The OS is Win7 32 bit. I create non-qt console app (pure C++ console app). I compile and run it and everything is OK. Then I add new empty cpp file (using the project menu), run it again and obtain error 'Cannot obtain a handle to the inferior'. The executable exists and run, but the QT Creator can not 'hold' it.

    The program is valid and has no errors.

    M 1 Reply Last reply 18 Nov 2015, 20:26
    0
    • W wwwed
      18 Nov 2015, 18:08

      I use QT Creator 3.5.1 (opensource). The OS is Win7 32 bit. I create non-qt console app (pure C++ console app). I compile and run it and everything is OK. Then I add new empty cpp file (using the project menu), run it again and obtain error 'Cannot obtain a handle to the inferior'. The executable exists and run, but the QT Creator can not 'hold' it.

      The program is valid and has no errors.

      M Offline
      M Offline
      mrjj
      Lifetime Qt Champion
      wrote on 18 Nov 2015, 20:26 last edited by
      #2

      Hi and welcome
      sounds like this
      https://bugreports.qt.io/browse/QTCREATORBUG-13042

      1 Reply Last reply
      0
      • W Offline
        W Offline
        wwwed
        wrote on 19 Nov 2015, 20:17 last edited by
        #3

        Yes, it sounds like it is.

        It happen not every time (now).
        I 'stimulated' this bag in the fallowing way: I included cpp- and h-files, which contained:
        inline function declaration / forward declaration (i.e. not definition) in the h-file;
        inline function definition in the cpp-file.
        I got the error I described above if I did not use any inlined function in the main source file. If I called any, 'unresolved reference' error appeared. And this is correct according to https://isocpp.org/wiki/faq/inline-functions .

        Removal of the 'inline' keyword solved the problem. 'Unresolved...' one gone and the initial problem appears very rare (only ones this day).

        1 Reply Last reply
        1

        1/3

        18 Nov 2015, 18:08

        • Login

        • Login or register to search.
        1 out of 3
        • First post
          1/3
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved