I did wxWidgets Tutorial 8 at:
http://wiki.codeblocks.org/index.php/WxSmith_tutorial:_Drawing_on_the_Screen_and_Saving_DrawingsIn tutorial 1-6 in this series I found that the Close() function did not work to close the program. What did work is the Destroy() function which caused the program's window to close smoothly. But when I use it in Tutorial 8 I find it does not work so smoothly when closing the stretchable window. What I get is the error:
Tutorial_8_Screen_Drawing.exe has stopped working
A problem caused the program to stop working correctly.
Windows will close the program and notify you if a solution is available
Interestingly this tutorial does not recommend the Close() function for this stretchable window it opens in response to a button click in the program's top level window. It recommends instead to use Destroy(), which is what I used. Apparently Destroy() is the wrong function. Which is the right one?
The other windows in this tutorial, the main one, and the one opened by the Show button, do close smoothly and without error as expected using the Destroy() function.