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.
How to break a heavy loop by a pressing a button
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Guest UserRank #1,422 · 1.2K reputationPosted Dec 7, 2010, 11:00 AM EST
System.Threading.Thread.Sleep( 1 );
Luis Fernando3 reputationPosted Dec 7, 2010, 12:47 PM EST
Guest UserRank #1,422 · 1.2K reputationPosted Dec 7, 2010, 1:58 PM EST