07-29-2013 02:37 AM
This entire thing needs to be recoded as a proper state machine instead.
07-29-2013 02:55 AM
@Intaris wrote:
This entire thing needs to be recoded as a proper state machine instead.
This.
It's probably the easiest and best solition in this case. Think and define which different phases the program uses and make a state machine with those.
It'd be something like:
Initialise
Grab image
Calculate
Save image
End or goto Grab image
If the states are a typ def'd enum (which it should be), it's easy to add states as needed.
Check Help, Find examples, State machine.
/Y