Hi Chris,
You got it right! Moving the interruptPort into the Run function works. This code sample is just a part of a bigger project I have and I am more confuse on how to deal with threads.
Is there a way to make Visual Studio debugger showing more relevant information to nail down thread and event issues?
The big picture of my project is the following:
- The program will consist of a sequence of steps.
I would appreciate any information sources on how I can architecture threads in my program to reach my goal.