Click here to Skip to main content
15,906,467 members
Home / Discussions / C#
   

C#

 
AnswerRe: Detect a particular color in particular location from image in c# Pin
Abhinav S20-Sep-13 3:16
Abhinav S20-Sep-13 3:16 
AnswerRe: Detect a particular color in particular location from image in c# Pin
BillWoodruff20-Sep-13 7:46
professionalBillWoodruff20-Sep-13 7:46 
GeneralRe: Detect a particular color in particular location from image in c# Pin
shehrozeee22-Sep-13 0:17
shehrozeee22-Sep-13 0:17 
GeneralRe: Detect a particular color in particular location from image in c# Pin
Dave Kreskowiak22-Sep-13 3:34
mveDave Kreskowiak22-Sep-13 3:34 
Questionhow to use thread in for loop in c# Pin
superselector19-Sep-13 20:00
superselector19-Sep-13 20:00 
AnswerRe: how to use thread in for loop in c# Pin
Mycroft Holmes19-Sep-13 21:06
professionalMycroft Holmes19-Sep-13 21:06 
GeneralRe: how to use thread in for loop in c# Pin
superselector19-Sep-13 21:50
superselector19-Sep-13 21:50 
GeneralRe: how to use thread in for loop in c# Pin
GuyThiebaut19-Sep-13 22:20
professionalGuyThiebaut19-Sep-13 22:20 
GeneralRe: how to use thread in for loop in c# Pin
superselector19-Sep-13 23:08
superselector19-Sep-13 23:08 
GeneralRe: how to use thread in for loop in c# Pin
GuyThiebaut19-Sep-13 23:13
professionalGuyThiebaut19-Sep-13 23:13 
GeneralRe: how to use thread in for loop in c# Pin
Pete O'Hanlon19-Sep-13 22:34
mvePete O'Hanlon19-Sep-13 22:34 
GeneralRe: how to use thread in for loop in c# Pin
harold aptroot19-Sep-13 23:58
harold aptroot19-Sep-13 23:58 
GeneralRe: how to use thread in for loop in c# Pin
superselector23-Sep-13 18:51
superselector23-Sep-13 18:51 
GeneralRe: how to use thread in for loop in c# Pin
harold aptroot23-Sep-13 21:08
harold aptroot23-Sep-13 21:08 
GeneralRe: how to use thread in for loop in c# Pin
superselector23-Sep-13 21:24
superselector23-Sep-13 21:24 
GeneralRe: how to use thread in for loop in c# Pin
harold aptroot23-Sep-13 21:28
harold aptroot23-Sep-13 21:28 
GeneralRe: how to use thread in for loop in c# Pin
superselector23-Sep-13 22:31
superselector23-Sep-13 22:31 
GeneralRe: how to use thread in for loop in c# Pin
harold aptroot23-Sep-13 22:33
harold aptroot23-Sep-13 22:33 
GeneralRe: how to use thread in for loop in c# Pin
superselector23-Sep-13 22:39
superselector23-Sep-13 22:39 
GeneralRe: how to use thread in for loop in c# Pin
harold aptroot23-Sep-13 23:15
harold aptroot23-Sep-13 23:15 
GeneralRe: how to use thread in for loop in c# Pin
superselector23-Sep-13 23:39
superselector23-Sep-13 23:39 
GeneralRe: how to use thread in for loop in c# Pin
harold aptroot23-Sep-13 23:59
harold aptroot23-Sep-13 23:59 
That wouldn't help. The problem is this:
superselector wrote:
wmithread.Start();
wmithread.Join();
That's like calling that ping operation without a thread, except this way resources are wasted as well. Or to put it differently, it's like hiring a team to play a game of monopoly, in order to do it faster. That doesn't work. If everyone takes turns anyway, you might as well do it by yourself.
You need an array of threads. Fill the array, start them all, then, and only then, join them all.

Besides, what's with the WMI stuff? Do you need something that the Ping class[^] can't do?
GeneralRe: how to use thread in for loop in c# Pin
superselector24-Sep-13 0:50
superselector24-Sep-13 0:50 
GeneralRe: how to use thread in for loop in c# Pin
harold aptroot24-Sep-13 0:54
harold aptroot24-Sep-13 0:54 
GeneralRe: how to use thread in for loop in c# Pin
superselector24-Sep-13 1:17
superselector24-Sep-13 1:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.