Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Losing my memory

by Fletch (Chancellor)
on Feb 04, 2021 at 19:04 UTC ( #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
Node Status?
node history
Node Type: note [id://11127891]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2021-04-11 00:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?