Ending the wx Application

BlitzMax Forums/Brucey's Modules/Ending the wx Application

CASO(Posted 2008) [#1]
I found this and it works (I have it connected to my program's "File">"Exit" menu)
	Function OnQuit(event:wxEvent)
		' true is to force the frame to close
		wxWindow(event.parent).Close(True)
	End Function

But when I click the X in the corner of the window, the window closes, but it shows that the application lives on in the TaskManager.


DavidDC(Posted 2008) [#2]
What are you connecting wxEVT_CLOSE_WINDOW to?

I'm wondering if you've connected up the event and then not passed it on via event.Skip().

Hard to say without seeing the main window (and wxApp) creation code.


CASO(Posted 2008) [#3]
Interestingly Enough...
If you forget to free a progress bar dialog (just letting it hide)
...THE PROGRAM WON'T END!

--Fixed Now!