in reply to Re^3: Tk::Image delete method
in thread Tk::Image delete method

You may laugh, but I have written a Perl/Tk program (that persists its state on disk) using Tk::Table and ended up adding a menu item that does exec $0 upon user command because I found that it gets strangely slow after some amount of usage. That program is just a small "toy" for my personal use and an exercise in using Tk, so restarting it when it gets slow works well enough for me and the "simple hack" was far easier than tracking down exactly what is going wrong.

Replies are listed 'Best First'.
Re^5: Tk::Image delete method
by bliako (Abbot) on Dec 19, 2019 at 09:30 UTC

    hey i am not Harry Tattle and I am not the (youtube warning-->> ) Central Scrutinizer of memory leaks :))) However, I must note that a few days ago I was gutted when I learned that every android is potentially pwned because of a freeing-memory bug in libpng gloogle was too lax to fix for some time (for obvious-to-me reasons) ...

    On the serious side, if the exec frees all memory then that's as good as a manual memory deallocation i guess. garbage collection can manifest itself in many forms! :)