Re: Embedded widgets in HList and Text leaking memory?
[email protected] Thu, 22 Feb 2007 10:36:37 +0100 (CET)
| Newsgroups | gmane.comp.lang.perl.tk |
|---|---|
| Message-ID | <[email protected]> |
> Hi all,
>
> Another rough patch in my love-hate relationship (:)) with Perl/Tk:
>
> I was enjoying the capabilities of the HList widget by constructing
> collapsible trees of embedded widgets when I noticed the memory footprint
> of
> my application creeping up significantly as widgets were added and not
> recovering when widgets were removed. I decided that this was not suitable
> for production and chose instead to embed windows in a ROText widget
> instead
> only to find that it happens there too!
>
> What can I do about it? I am holding no references to the embedded windows
> and
> they are unmapped. I can provide examples if required but it happens with
> the
> simplest of cases.
>
How do you remove the embedded widgets? I guess that you need both,
removing the widget
from the container widget *and* explicitely destroying the embedded widget
using destroy().
Regards,
Slaven
--++**==--++**==--++**==--++**==--++**==--++**==--++**==
ptk mailing list
[email protected]
https://mailman.stanford.edu/mailman/listinfo/ptk