in reply to Problems with Tk freezing

You might want to pepper some of your callbacks with calls to $mw->update, especially where it's compute bound.

--

Oh Lord, won’t you burn me a Knoppix CD ?
My friends all rate Windows, I must disagree.
Your powers of persuasion will set them all free,
So oh Lord, won’t you burn me a Knoppix CD ?
(Missquoting Janis Joplin)

Replies are listed 'Best First'.
Re^2: Problems with Tk freezing
by wulvrine (Friar) on Feb 06, 2007 at 15:40 UTC
    rinceWind,
    Thanks for the quick response. I have tried this already, and it still freezes but when it exits displays a 'deep recursion' error. So I had to remove it. :(

    s&&VALKYRIE &&& print $_^q|!4 =+;' *|

      Having a second look at the code, your app looks very busy. When does it ever hand control back to the event loop to process events?

      My suggestion is to defer some of the movement events by using timers with after or repeat. This will relinquish some control back to the controlling event loop, and it might get a chance to service some events that have been queued up.

      --

      Oh Lord, won’t you burn me a Knoppix CD ?
      My friends all rate Windows, I must disagree.
      Your powers of persuasion will set them all free,
      So oh Lord, won’t you burn me a Knoppix CD ?
      (Missquoting Janis Joplin)