[Dev] Re: Don't forget to Call Destroy on your dialogs

Kaitlin Duck Sherwood ducky at osafoundation.org
Mon Jul 14 13:51:13 PDT 2003


Robin Dunn wrote:

> Anytime you create an *instance of a wxDialog class* you need to call 
> its Destroy method when you are done.  If you use one of the *helper 
> functions* like wxMessageBox or wxFileSelector then you don't need to 
> call it since the dialog is destroyed inside the funciton, (and you 
> can't call it anyway since you don't have an instance.)


FYI: Here is a list of Dialog functions:
   http://www.freiburg.linux.de/~wxxt/wxHTML/wxwin396.htm

(For those of you on the dev list, who feel like you're coming in late, 
you are.  This was accidentally posted to the internal list and 
discussed for a few rounds before we realized that it should be on 
dev.   What you missed was John reminding people to destroy their 
Dialogs, a question about how to destroy wxMessageBoxes, then Robin's 
pronouncement that wxMessageBoxes didn't need to be destroyed.)





More information about the Dev mailing list