Another question if I may.
I'm having an issue with a For Next loop that is terminated prematurely. In the loop is a NSTask.
For t = 0 To 4 task = new MyTask Dim Arguments( -1 ) As String Arguments.Append "-input" + Cstr(t) Arguments.Append "x" Arguments.Append "-output" Arguments.Append "y" + Cstr(t) task.setArguments Arguments() task.setStandardOutput outputPipe task.launch return Next
Instead of 5 times, the loop runs only 1 time. Apparently the 'return' statement (part of the NStask), causes the loop to exit after the first time.
What could be wrong and how do I prevent it from exiting the loop?