in reply to Perl::tk and Display/Memory Issues

my $repeat = $mw->repeat( 250, sub{$mw->update()} );

Don't do that... MainLoop takes care of updating the UI for you. Explicit calls to update() can be appropriate from within long running callbacks when you need to update status messages or similar things. In your case that timer is useless and might well be part of your problem.


Cheers, Christoph

Replies are listed 'Best First'.
Re^2: Perl::tk and Display/Memory Issues
by Anonymous Monk on Sep 28, 2009 at 14:58 UTC
    I appreciate your response. The problem, however, was happening before I added the update sub. Your point about the mainloop handling updates is well taken.