http://qs1969.pair.com?node_id=507219


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