How to stop ThreadPool.QueueUserWorkItem?

AurelioBenitez.2333AurelioBenitez.2333 ✭✭COMember ✭✭

Hello everyone.

I'm using the function ThreadPool.QueueUserWorkItem to retrieve frames continuously from an external device and printing them on screen as they are ready to display. This runs on a function that contains an infinite loop. Obviously, this loop can't keep running once the activity is no longer being used, but I can't find the way to stop the worker thread once the activity is being abandoned.

Any suggestions?

Best Answer

Answers

Sign In or Register to comment.