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. [solved] Crash on exiting an application
Forum Updated to NodeBB v4.3 + New Features

[solved] Crash on exiting an application

Scheduled Pinned Locked Moved General and Desktop
6 Posts 2 Posters 1.3k 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.
  • I Offline
    I Offline
    igorland
    wrote on last edited by
    #1

    I am testing an application and do not get any errors. However other people do, when they try to close the application using the X icon in the window.

    https://www.dropbox.com/sc/yetqa9hs1m4j1cy/Py4ambW6tQ

    https://www.dropbox.com/sc/b7c84n9m291z3vv/9kTI6eexc1

    https://www.dropbox.com/sc/tnsf9rz2riuenj2/N6RmdneCNY

    When I run dependency walker, I get the following:

    https://www.dropbox.com/sc/u0y4er88btsiybr/D6oZNrT5zn

    Can this be a problem? Again, I do not get any errors myself.

    Thank you!

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

      Hi,

      No it should not. Are you doing any cleanup, having custom destructors etc. ?

      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
      • I Offline
        I Offline
        igorland
        wrote on last edited by
        #3

        SGaist. Brilliant. Thank you so much! Just received reports from the other users. Problem is gone.

        I created several pointer objects on the heap in one of the functions. Then I wrote a command to destroy the objects in the mainwindow destructor. If the user never called that function, there was nothing to destroy.

        Anyways, thank you so much for pointing to the problem!

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

          You're welcome !

          Missing pointer initialization to 0 ?

          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
          • I Offline
            I Offline
            igorland
            wrote on last edited by
            #5

            Yeah, silly me. :-)

            Thanks and Merry Christmas!

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

              You're welcome and same to you !

              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

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved