I have problems with loops...
I have a program that read pixels from another application. That works fine so far.
Depending on what happens in the other application I want do things in my own program.
If for example some pixels in the other application become blue I want to increment an integer in my program. basically just monitor what happens in another application.
I was thinking about using a loop. and in the loop have calls to functions and subs. In the example below status and analyze
Private Sub runLoop()
statusText.Text = status
This doesnt work very good, my computer becomes unstable after awhile and I have to restart visual basic.
What is a good solution for this. I want to be able to control the speed of the loop, so that it calls the functions and subs like twice every second.
thanks in advance