Click here to Skip to main content
15,915,093 members

Comments by MeSaNei (Top 2 by date)

MeSaNei 18-Jan-13 8:30am View    
Another solution to this situation is to use Task.Run.
Task.Run uses a thread from the ThreadPool to execute the delegate you give it.
So:
Task t = Task.Run(() => {
foreach (string domain in urlArray)
{
on.Docompute(domain);
}
});
MeSaNei 17-Jan-13 14:27pm View    
The UI becomes unresponsive. The code above is complete code i run.