Closed GoogleCodeExporter closed 9 years ago
You have to store the interface returned from the Parallel.ForEach in a global
(form etc) variable and destroy it only when the ForEach finishes execution.
In your example, the result of ForEach is stored in a temporary variable which
is destroyed when the Test procedure exits. The ForEach destructor waits for
all tasks to complete and that blocks your program.
Original comment by gabr42
on 2 Jun 2013 at 7:38
Original issue reported on code.google.com by
danielsc...@gmail.com
on 2 Jun 2013 at 2:37