Syntactic Confectionery Delight | |
PerlMonks |
Re: Hunting for a memory leakby BrowserUk (Patriarch) |
on Aug 07, 2012 at 16:20 UTC ( [id://986024]=note: print w/replies, xml ) | Need Help?? |
If you comment out show_drawing($MW, $ZC); in makeReviewScreen() the leak goes away. So look in show_drawing() If you comment out the Photo:
The leak goes away. If you replace the -data option with a -file option and load a small image straight off disk, each iteration leaks by approximately the size of the loaded image. Conclusion: Tk::Photo doesn't clean up its memory when you undef the Photo object. I tried adding $img->blank; before the undef, but it made no difference. With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
In Section
Seekers of Perl Wisdom
|
|