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. [SOLVED] QCoreApplication exited with code -1073741510
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] QCoreApplication exited with code -1073741510

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 6.6k 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.
  • R Offline
    R Offline
    Resurrection
    wrote on last edited by
    #1

    Hi,

    I am getting the error exited with code -1073741510 with all console applications even the one with just QCoreApplication and the event loop, i.e.:

    @
    #include <QCoreApplication>

    int main(int argc, char *argv[])
    {
    QCoreApplication a(argc, argv);

    return a.exec&#40;&#41;;
    

    }
    @

    The error occurs after closing the window or using CTRL+C. Outputting to Qt Creator "hangs" the application with no other way than killing the process to end it. Running Qt Creator as administrator also has no effect. GUI applications based on QApplication exit normally with code 0 however.

    I am using:

    Qt 5.2.0 with Qt Creator 3.0.0 32-bit and MingW 4.8 32-bit (all 'fresh out of the box') in Windows 8.1 64-bit.

    Thank you for your help!

    Secrets are power.

    1 Reply Last reply
    0
    • C Offline
      C Offline
      ChrisW67
      wrote on last edited by
      #2

      -1073741510 => 0xC000013A: The application terminated as a result of a CTRL+C
      Sounds like a perfectly reasonable response to being closed by Ctrl-C (or terminated unceremoniously by having the console pull from under it).

      Your program "hangs" because you have told it to. By calling QCoreApplication::exec() you enter a Qt event loop. That loop continues until QCoreApplication::exit() is called somewhere in your program. Your program provides no such mechanism.

      1 Reply Last reply
      0

      • Login

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