Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

How to close GUI application?



  • Hi,
    I have GUI progam and many forms in it. Ofcourse I have MainForm. And I have EXIT menu. Whan I trigger it "close()" command running.
    But in Application Outputscreen I see below message. Is it something wrong?..

    15:27:17: Starting D:\Belgeler\Qt\build-Yonetim-Desktop_Qt_5_13_1_MSVC2017_64bit-Debug\debug\Yonetim.exe ...
    15:30:50: The program has unexpectedly finished.
    15:30:50: The process was ended forcefully.
    15:30:50: D:/Belgeler/Qt/build-Yonetim-Desktop_Qt_5_13_1_MSVC2017_64bit-Debug/debug/Yonetim.exe crashed.

    Regards,
    Mucip:)


  • Lifetime Qt Champion

    @Mucip You should run through debugger.
    One reason could be double delete: if you delete something (in destructor for example) which has a parent so it is deleted second time by the parent.


  • Lifetime Qt Champion

    @Mucip You should run through debugger.
    One reason could be double delete: if you delete something (in destructor for example) which has a parent so it is deleted second time by the parent.



  • Hi @jsulm ,
    You're right sir. I was trying to delete pointer twice unfortunately. :)

    Regards,
    Mucip:)


Log in to reply