Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^2: Tk::TableMatrix Memory Usage

by ldln (Pilgrim)
on Nov 09, 2005 at 21:26 UTC ( [id://507219]=note: print w/replies, xml ) Need Help??


in reply to Re: Tk::TableMatrix Memory Usage
in thread Tk::TableMatrix Memory Usage

Looks like set (and deleteRows?) is the method causing leaks in this module. Guess we just have to work directly with the hash tied to the tablematrix widget instead.

Luckily both clearTags and windowDelete methods seem to behave properly regarding memory usage.

zentara, you can use this trick to force update of TableMatrix widget:

sub TMRefresh { #Required input TableMatrix object. return if (!$_[0]); $_[0]->configure(-padx =>($_[0]->cget(-padx))); }

Replies are listed 'Best First'.
Re^3: Tk::TableMatrix Memory Usage
by zentara (Archbishop) on Nov 10, 2005 at 12:46 UTC
    Thanks for the tips. I also found you can force an update with
    $t->see("end"); $t->see("1,1");

    I'm not really a human, but I play one on earth. flash japh

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2024-03-28 11:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found