Workaround for the WaitHandle.WaitAll 64 handle limit?

Create a variable that keeps track of the number of running tasks: int numberOfTasks = 100; Create a signal: ManualResetEvent signal = new ManualResetEvent(false); Decrement the number of tasks whenever a task is finished: if (Interlocked.Decrement(ref numberOftasks) == 0) { If there is no task remaining, set the signal: signal.Set(); } Meanwhile, somewhere else, wait … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)