Użytkownik John Fabiani napisał:
> def someMethod(self):
>    dlg = dDialog()
>    dlg.show()
>   # dlg.release()
>
> 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?
> I'd say yes.  But if I did not release the old instance what happens?  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?
>    

Hi.

It's released only if explicit release() is called or it's parent is 
destroyed.
So, yes you will get as many dialogs as you have method calls.
Remember, that Python 2.x doesn't truly release once used memory
to the system pool.
If you have really memory consuming tasks to do,
you should consider of using threads.

-- 
Regards
Jacek Kałucki

_______________________________________________
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]

Reply via email to