Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Losing my memory

by Fletch (Bishop)
on Feb 04, 2021 at 19:04 UTC ( [id://11127891]=note: print w/replies, xml ) Need Help??


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 ...

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11127891]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (5)
As of 2024-04-25 14:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found