One possible source of memory leaks in Perl when using Tk is that Perl never free()s anonymous subroutines. I suspect this will be fixed in Perl 5.8.
I had a simple Tk application that leaked memory and I changed it to use smart named subroutines instead of passing lots of anonymous subroutines to Tk and the leak went away.
- tye (but my friends call me "Tye")In reply to (tye)Re: memory usage/leaks
by tye
in thread memory usage/leaks
by smackdab
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |