How to break a heavy loop by a pressing a button

Dec 7 2010 3:47 PM

Hi.
I am developing an application to perform video processing.  I would like to interrupt the process (break the loop) by pressing a "Stop"button, that changes the value of a flag in the while loop. However, when I press the stop button the application stops responding. I am working with C# Express 2008.
If any idea, please post it. Thanks in advance.
 

Answers (3)