View Single Post
  #2 (permalink)  
Old 11-17-2007, 11:27 PM
hardwired hardwired is offline
Senior Member
 
Join Date: Jul 2007
Posts: 1,222
hardwired is on a distinguished road
Depends on what it is that you want to stop the execution of. You might be able to use a thread with a while loop and sleep delay. You can bind a key to the component and use it to interrupt the thread. Or you might be able to use wait and notify.
Have a look at Lesson: Concurrency for some ideas.
Reply With Quote