Task.WaitAll freezes app C#
问题 I wanted to try out Threading.Task (C#) to run some work in parallel. In this simple example I have a form with progress bar and button. On click the RunParallel function is called. Without Task.WaitAll() it seems to run through fine. However, with the WaitAll statement the form shows and nothing happens. I dont understand what I am doing wrong in the setup below. Thanks in advance. public partial class MainWindow : Form { public delegate void BarDelegate(); public MainWindow() {