News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Close() function fails to close program

Started by spflanze, September 09, 2017, 01:23:14 AM

Previous topic - Next topic

spflanze

I have followed the Hello World tutorial at:
http://wiki.codeblocks.org/index.php/WxSmith_tutorial:_Hello_world

My Hello World application does not close. When I click on the Close button, do File => Quit, or click on the X in the window frame's upper right corner. nothing happens. I have set a breakpoint on the Close(); function and I see that this function does get executed. I also tried "this->Close(true);" which did not make a difference.

To close it I had to in Code::Blocks do either "Build => Abort" or "Debug => Stop Debugger" depending on how I started the program.

What do I need to do to get the Close() function working?

I am using Codeblocks 16.01, wxWidgets-3.0.3, and WxSmith. This is the first application I have ever build with this.

spflanze

This problem is solved. I had to use Destroy(); instead of Close(); or event.Skip(TRUE); .