Results 1 to 3 of 3

Thread: Crash after closing by "X" - How to find the bug?

  1. #1
    Join Date
    Jun 2008
    Posts
    20
    Qt products
    Qt4
    Platforms
    Windows

    Default Crash after closing by "X" - How to find the bug?

    Hello there,

    My application compiles, with no warning and any errors.
    After executing it makes all i want - all my functions are working fine, so far i can see.

    I made an "Exit" QPushButton, and in the "on_exitButton_clicked()"-method just do
    "exit(0);" - works totally fine!

    But when i push the "X" on top right of the mainwindow, an only then, Windows telling me
    "app.exe made an error". This error occurs on two different machines.

    If i copy the code out of an example from the QT-assistant and execute it, this error won´t occur!?!

    How can i get any Information about what happens while closing by "X"?

    I´m working with:
    QT 4.4
    Eclipse 3.3.2
    Qt C++ Eclipse Integration 1.4.0
    MinGW-5.1.4.exe
    And (sorry for that) on WindowsXP Pro SP2

    Thanx a lot in advance.

  2. #2
    Join Date
    Aug 2006
    Location
    Germany
    Posts
    33
    Thanks
    8
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Crash after closing by "X" - How to find the bug?

    post ur main.cpp code.

    Also better to use the slot quit() in the connect directly instead of exit(0).

  3. #3
    Join Date
    Jun 2008
    Posts
    20
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Crash after closing by "X" - How to find the bug?

    My main.cpp? Never changed somthing in it. Was set up automatically:


    #include "MainWindow.h"
    #include <QApplication>

    int main(int argc, char *argv[]) {

    QApplication a(argc, argv);

    MainWindow w;
    w.show();

    return a.exec();
    }


    I deleted some unused Widgets in my UI-File. Since then, the errormessage never appeared again - Happy about it, i won´t ask why.

    But Thanx for your help

Similar Threads

  1. problems installing Qt opensource with msvc2008 support
    By odin1985 in forum Installation and Deployment
    Replies: 6
    Last Post: 24th May 2008, 09:06

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.