On Friday, December 17, 2010 09:37:00 am Ed Leafe wrote: > On Dec 17, 2010, at 12:30 PM, John Fabiani wrote: > > Assume I don't do a release(). What happens when the I call the same > > method that creates the dialog a second time? Is 'dlg' a new instance > > of dDialog? > > Yes. > > > I'd say yes. But if I did not release the old instance what happens? > > It continues to exist somewhere in the electronic ether. > > > If it > > is true that the dialog requires a release - does that mean that the old > > instance of dlg is just hanging out there in bit heaven? Is there > > garbage collection? > > Dialogs in wx are odd beasts. Most objects are gc'd when they go out of > scope, but dialogs are not. I don't know why; I just know that since I > started using wx, the advice has always been to explicitly release > dialogs. My understanding is that wx maintains an internal reference, but > I'm not positive about that. > > > -- Ed Leafe
I need to change some code. Thanks for the information. Johnf _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users Searchable Archives: http://leafe.com/archives/search/dabo-users This message: http://leafe.com/archives/byMID/[email protected]
