Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Problems with Tk freezing

by rinceWind (Monsignor)
on Feb 06, 2007 at 15:36 UTC ( [id://598562]=note: print w/replies, xml ) Need Help??


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)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2024-03-29 13:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found