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 Updated to NodeBB v4.3 + New Features

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 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.
  • W Offline
    W Offline
    wwwed
    wrote on 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.

    mrjjM 1 Reply Last reply
    0
    • W wwwed

      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.

      mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on 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 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

        • Login

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