Important: Please read the Qt Code of Conduct -

QT throws exception (execution cannot be continued) (first chance)

  • I simplified my code which you can find "here...":

    It's just a very simple code. It loads using QWebView. However, this code throws the following exception when loading the page in debug mode:

    @:error: Exception at 0x77c91d82, code: 0xc0000138: , flags=0x1 (execution cannot be continued) (first chance)@

    When closing the form, it throws another one:

    @:error: Exception at 0x754ec42d, code: 0xd: , flags=0x1 (execution cannot be continued) (first chance)@

    Could anyone tell me why it throws these exceptions? There is no such thing happens without QWebView. This happens only in debug mode.

    My config is:

  • You usually have Ui::MainWindow ui; as a member variable having #include "ui_mainwindow.h" in MainWindow header file, not as a pointer Ui::MainWindow *ui; So there usually is no new and no delete.
    Maybe the debug problem during close is a timing issue that does not happen during release as release code is faster.

  • I think code: 0xc0000138 means something went wrong while loading DLLs. It maybe incorrect PATH or wrong DLL version, like 64 bit on 32bit OS or something else. What OS do you use?
    Try to run dependency walker on your app, maybe it will show something.

    On Linux your code runs without any problems.

Log in to reply