Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-36200

Android: onDestroy is not forwarded to c++, no destructors of main() called

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 5.2.0
    • QPA
    • None
    • Ubuntu 12.04
    • Android

      QtActivityDelegate::onDestroy() does a System.exit() which seems to quit the application without calling any destructors (of local variables in main()). Any code after a Q*Application::exec() will not be executed if you close the application via swipe-out (task manager?). Also atexit/qAddPostRoutine handlers are not called.

      Instead onDestroy() should stop the event loop and quit c++ properly if possible.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            tvete Paul Olav Tvete
            gri Christoph Keller
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes