Search code examples
c++visual-studio-2008wxwidgets

wxApp get stuck when closing


I've added new dialogs and pieces to my wxApp, but now when I close the main frame, the main frame get deleted but it never get to the OnExit function, and is stuck.

When I try to "break all", it get in this function call:

wxIdleWakeUpModule::MsgHookProc

in:

return CallNextHookEx(ms_hMsgHookProc, nCode, wParam, lParam);

Do you have any advice on how to fix that ?


Solution

  • So after I've tested one by one all the pieces of code I've added to my previously working program, I've realized that one of the wxDialog I was creating had no parent, but this was not intended.

    So because of that it would not close because one of the main window was still alive (even though it was not shown)

    Thanks all for your help