Hi,
(On OS X)
I can execute async (mode=1) shells without problems but I can’t seem to figure out how to launch multiple async shells at the same time.
I was under the assumption that I could just launch multiple shells and then handle the results of the different instances myself in the dataavailable event (and track the different results with a handle/ID).
It seems that’s not the case because it looks like as if I launch the second one while the first one is still running, the first one quits.
I think I’m doing it totally wrong but this is what I did:
I created a class myAsyncShell with Shell as Super
Then I dragged it in the Window and called it asyncShell.
I added the datavailable and iscompleted logic under asyncShell.
Now here’s where I’m stuck. How do I call asyncShell multiple times? If I want to launch 10, do I need to prepare 10 ‘slots’ (asyncShell1…asyncShell10) upfront?
I would like to reuse asyncShell because I don’t know how many I want to launch upfront but I’m not allowed to Dim array(x) or sh1, sh2 etc… As New asyncShell.