Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Exceptions cause crash (Qt SDK 1.2.1 - Qt4.8.1, MinGW, windows)
Qt 6.11 is out! See what's new in the release blog

Exceptions cause crash (Qt SDK 1.2.1 - Qt4.8.1, MinGW, windows)

Scheduled Pinned Locked Moved Installation and Deployment
1 Posts 1 Posters 1.7k 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.
  • D Offline
    D Offline
    dheide
    wrote on last edited by
    #1

    Hi,

    I have an ugly problem and would appreciate any help!! My program crashes on windows any time there an exception is thrown, e.g.:
    @ try
    {
    throw QString("lala");
    }
    catch(QString &s)
    {
    ...
    }
    @

    I'm using Qt 4.8.1 with MinGW in the QtCreator. I found quite a few discussions and tried

    • rebuilding the source code with -exceptions
    • adding QMAKE_CXXFLAGS += -fexceptions

    but no change. Windows tells me that the program crashed at the point where I throw the error. Under Linux everything works fine.

    Without wanting to discuss the pros and cons of using exceptions at all, I wonder if it's a problem with Qt or MinGW and what I can do to get rid of the problem.

    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