I am running several programs with CreateProcess and want a "batch" of them to run by group number before the next batch starts. I am trying to use WaitForMultipleObjects to do this. I have created a vector to hold the handles returned. Once the batch has all started processing, I then make a dynamic array using the information in the vector. I am trying to use this dynamic array as the second parameter in WaitForMultipleObjects. When I GetLastError(), error 6 comes up which means (I believe) that I have invalid handles in the array. The program compiles and runs, but the WaitForMultipleObjects does not work.
I can post the code if this will help
I can post the code if this will help