VB.NET - Dimming an array of processes
Trying to dim a certain amount of process (determined by Environment.ProcessorCount) to run several processes which do not support multi-threading. I have already Dim'd proinf(6) as Process.ProcessStartInfo because I have designe开发者_StackOverflow中文版d a queue for the processes and this encounters no errors.
Any help is appreciated!
Is this what you are after?
Dim parray(Environment.ProcessorCount) As Process
For i As Integer = 0 To parray.Length - 1
parray(i) = New Process()
Next
精彩评论