I have a Perl::Tk application which handles a number of functions to manipulate text and run background processes. The problem I have is that if I leave the application running on my machine, the following day the display somehow gets corrupted. All the widgets disappear or blend in and Tk's main window somewhat displays remnant icons from the desktop!! It's really odd. Almost like a situation when you run out of memory resources and your application starts dragging other icons because of latency issues. However, if you click on the windows the icons seem to function as they are suppoed to; that's if you are lucky enough to click on the right button :-). This is a Windows box with memory to spare. Is this a memory leak? Anyway around it? I need to share the application with a customer and I am hesitant to do so if they are going to have the same problem. I have added the following:
my $repeat = $mw->repeat( 250, sub{$mw->update()} );
before the mainloop but I am not sure if it's enough! Thanks for your feedback.

In reply to Perl::tk and Display/Memory Issues by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.