Author Topic: Close() function fails to close program  (Read 4352 times)

Offline spflanze

  • Almost regular
  • **
  • Posts: 134
Close() function fails to close program
« on: September 09, 2017, 01:23:14 am »
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.

Offline spflanze

  • Almost regular
  • **
  • Posts: 134
Re: Close() function fails to close program
« Reply #1 on: September 09, 2017, 02:11:20 am »
This problem is solved. I had to use Destroy(); instead of Close(); or event.Skip(TRUE); .