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. Qt built in release mode still gives Assertions and Exceptions - Linux

Qt built in release mode still gives Assertions and Exceptions - Linux

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

    Hi,

    we've installed Qt 4.8.5 on a RH4 32Bit Linux machine in release mode (using -release option in configure).
    and added the -no-exceptions to configure command line arguments, and even added -D QT_NO_EXCEPTIONS to the configure command line.

    but still, in run time we get exceptions, for example on a slot that doesnt exist from a connect command.
    and assertions (which causes the application to crash) when accessing a QList in a negative index.
    this kind of assertions/exceptions don't appear in the windows version of our application when running in release mode.
    did we forget something in the configuration of Qt install?
    in the .pro of my application i have:
    CONFIG += release
    DEFINES += QT_LARGEFILE_SUPPORT QT_NO_DEBUG QT_NO_EXCEPTIONS

    Thanks
    Asher Ungar

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      AFAIK this is by design. Qt does not throw exceptions, so instead it crashes on assertions (like in your example with QList). I've never seen this as anything unusual. Then again, I'm using Qt mostly on Linux :)

      (Z(:^

      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