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. The inferior stopped because it triggered an exception
Forum Updated to NodeBB v4.3 + New Features

The inferior stopped because it triggered an exception

Scheduled Pinned Locked Moved General and Desktop
qtcreator
5 Posts 2 Posters 8.7k Views 2 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.
  • RatzzR Offline
    RatzzR Offline
    Ratzz
    wrote on last edited by Ratzz
    #1

    I am using Qt 4.8.6 , Qt creator 3.4.1 , compiler msvc2008 in an windows 7 operating system .
    when a try to run a new created project i get an error

    Exception Triggered

    <p>The inferior stopped because it triggered an exception.<p>Stopped in thread 0 by:
    Exception at 0x64f7e49c, code: 0xc0000005: read access violation at: 0x0, flags=0x0 (first chance).
    OK

    Code is listed below

    mainwindow .h

    #ifndef MAINWINDOW_H
    #define MAINWINDOW_H
    #include <QMainWindow>
    #include <QApplication>
    #include <QWidget>

    namespace Ui {
    class MainWindow;
    }

    class MainWindow : public QMainWindow
    {
    Q_OBJECT

    public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

    private:
    Ui::MainWindow *ui;
    };

    #endif // MAINWINDOW_H

    main.cpp file

    #include "mainwindow.h"
    #include <QApplication>

    int main(int argc, char *argv[])
    {
    QApplication a(argc, argv);
    MainWindow w;
    w.show();
    return a.exec();
    }

    mainwindow.cpp

    #include "mainwindow.h"
    #include "ui_mainwindow.h"

    MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
    {
    ui->setupUi(this);
    }

    MainWindow::~MainWindow()
    {
    delete ui;
    }

    --Alles ist gut.

    1 Reply Last reply
    1
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Run your application through the debugger, it will tell you where there's a problem

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • RatzzR Offline
        RatzzR Offline
        Ratzz
        wrote on last edited by Ratzz
        #3

        @SGaist
        Hi . It just gives me the The inferior stopped because it triggered an exception which points to
        QApplication a(argc, argv);

        Is it because i have two version of Qt installed ??
        Qt 4.8.6 for msvc 2008 and Qt 4.8.6 for msvc 2010 installed

        --Alles ist gut.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          No it should not, unless you've mixed the compilers in your Kit

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • RatzzR Offline
            RatzzR Offline
            Ratzz
            wrote on last edited by Ratzz
            #5

            @SGaist

            I have 2 Qt installed Qt 4.8.6 for msvc 2008 and Qt 4.8.6 for msvc 2010
            Two compilers Microsoft Visual Studio 10.0 and Microsoft Visual Studio 9.0
            3 debuggers windows kits 10(version 10.0), windows kits 8.0(version 6.2) and Debugging Tools for Windows (x86) (version 6.11)

            I have 2 combination of kits.
            1)Desktop_msvc2008
            Qt-4.8.6 for msvc 2008
            compiler-Microsoft Visual Studio 9.0
            debugger-Debugging Tools for Windows (x86) (version 6.11)

            Which gives me "The CDB process terminated) error''

            2)Desktop_msvc2010
            Qt-4.8.6 for msvc 2010
            compiler-Microsoft Visual Studio 10.0
            debugger-windows kits 8.0(version 6.2)

            which gives me "The inferior stopped because it triggered an exception".

            Did i configure kits correctly ??

            --Alles ist gut.

            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