Navigation

    Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. Tags
    3. exception
    Log in to post

    • UNSOLVED Integration Direct3D 12 in Qt
      3rd Party Software • debug msvc exception directx qt 5.12.3 • • range36rus  

      7
      0
      Votes
      7
      Posts
      373
      Views

      @JKSH Yes, I created two simple console applications and added required libraries to them. Compiler keys are identical. I checked carefully. A one project have a mistake, and another doesn't have For example, a project with subprojects have this error, but QT Widgets does not have (but not always). Heisenbug?
    • SOLVED QT5 application crashed after running for some long time.....
      General and Desktop • crash memory exception bad allocation • • VikramSamy  

      18
      0
      Votes
      18
      Posts
      2007
      Views

      @VikramSamy said in QT5 application crashed after running for some long time.....: so my question which is the better, use as my original code and delete the Qstringlist somewhere, or create the QStringlist in the stack and let it get destroyed by itself after getting out of scope as above ?? There is no generic answer to this question as it simply depends on the use case. If you only need this list in that method then you simply allocate it as local variable. Having it as member variable in the class is only needed if you need the list at several places in your class. By the way this is not heap allocation: private: QStringList TableMessages; QStringList TableMessagesNOT;
    • SOLVED How to debug "Exception Triggered: The inferior stopped because it triggered an exception"?
      General and Desktop • qt 5.5 debugging msvc2017 exception • • elsa  

      4
      0
      Votes
      4
      Posts
      1272
      Views

      @jsulm there was in fact a problem with window3d() that MinGW didnt complain about! Thanks! @JonB no I had commented out only up to the second screenshot, so that's why this was the problem. And about the second issue, to be honest I adapted the constructor from an older version of the application and it also had &argc. At one point I also noticed it and now I tried out both and both work.
    • UNSOLVED QTextToSpeech::say exception
      General and Desktop • exception qtexttospeech • • Kornei4  

      6
      0
      Votes
      6
      Posts
      497
      Views

      Can you test whether a more recent version of Qt still has that problem ? The Qt 5.9 series is at the 5.9.6 and 5.11.1 being the current version.
    • UNSOLVED I don't catch exception in Qt
      General and Desktop • exception • • Petin  

      5
      0
      Votes
      5
      Posts
      575
      Views

      @Petin, does your program run correctly if you don't throw an exception?
    • UNSOLVED Throwing error on component creation
      QML and Qt Quick • qml exception custom type extension • • romsharkov  

      4
      0
      Votes
      4
      Posts
      1952
      Views

      Forgive me if this doesn't help, but it's what I'm thinking. I'm not sure if this will even work (unsure if you can swap sources) like this on width changed... but onCompleted should be ok? It may get you experimenting / thinking differently to get a solution. http://doc.qt.io/qt-5/qml-qtquick-loader.html#source-prop Loader { id: container anchors.fill: parent // setSource on Loader Component complete Component.onCompleted: { doSetSource(); } } Connection { target: container; onWidthChanged: { doSetSource(); } } function doSetSource(){ if(container.width < 320) { container.setSource("ViewSmall.qml"); ...
    • UNSOLVED qt5webenginecore captures application exceptions
      QtWebEngine • crash exception stack qt5webenginecor • • seb_berlin  

      2
      0
      Votes
      2
      Posts
      700
      Views

      Hello Sebastian, I am seeing the same problem. The last frame on the stack after a crash points to qwebengine core qt5\qtwebengine\src\3rdparty\chromium\base\process\memory_win.cc @ 41 but its actually capturing various other exceptions from our application. Were you able to solve the problem? Thanks!
    • SOLVED Exception in deleting an array
      General and Desktop • exception • • ddze  

      15
      0
      Votes
      15
      Posts
      3016
      Views

      @kshegunov , agree with what you have written. I think , I was in rush to reply to the one who objected on using the pointer to a container structure. So I went on and hoping to convey the idea of me doing it rather than being careful in writing the correct way. All the best to you Kshegunov.
    • UNSOLVED Re-implementation of QApplication::Notify not catching exceptions
      Mobile and Embedded • c++ exception qapplicationn • • JeffF  

      4
      0
      Votes
      4
      Posts
      3559
      Views

      Indeed, don't forget to provide a minimal compilable example. That will help greatly.
    • UNSOLVED Getting a backtrace out of an event handler
      General and Desktop • debugging debugger exception • • tinloaf  

      1
      0
      Votes
      1
      Posts
      568
      Views

      No one has replied

    • QJSEngine: Throw exceptions from OQbject's method that is called from script, and catch this exception in C++
      QML and Qt Quick • javascript qjsengine exception • • dimonomid  

      1
      1
      Votes
      1
      Posts
      893
      Views

      No one has replied

    • [SOLVED]Delay function leads to Exception in new thread
      General and Desktop • threads qeventloop qcoreapplicatio delay exception • • Sen Li  

      6
      0
      Votes
      6
      Posts
      4986
      Views

      @ChrisW67 Thank you for you help. Probably the thing is, QSerialPort has a problem to work in a new thread. I can handle the other QObject in a new thread very well, and the exception only happens when the Object contains QSerialPort. Also, in my last post, I actually never user QList, although Qt tells me something wrong with QList. I have given up on working serialThread. QSerialPort does work good in the main thread.