http://qs321.pair.com?node_id=11127891


in reply to Losing my memory

Not sure but from your description what's happening is even though you're calling the destroy method on the Tk widgets you're not removing the references to those widgets from your hash %TK so the underlying resources those are using aren't going away. I'd bet if you also did e.g. undef $TK{'pw-'.$NVP{'Id'}} after calling destroy you'd see things clean up much more completely.

The cake is a lie.
The cake is a lie.
The cake is a lie.

Replies are listed 'Best First'.
Re^2: Losing my memory
by nzsvz9 (Sexton) on Feb 04, 2021 at 20:03 UTC
    Thanks- I'll try.

    It's handy to keep track of all those pesky Tk things, but if the HASH is causing the problem by "holding on" then I'll have to refactor the way I do my Perl Tk programs ... ugh. MAJOR rewrite.

    And cake whispers untruths ...