Click here to Skip to main content
15,881,172 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have a project with SmartThreadPool.I have a list of IPs to get DNS Names.I get list of IPs from dataBase in a dataTable.If the table contains 1 IP means The below code executes well no error. If the table Contains more than 1 IP means The below code throw an error saying that

"The SmartThreadPool has been shutdown\Object name: 'SmartThreadPool.Internal.WorkItemsQueue"

This is the code that I have used.
               for(int i=0;i<=dt.rows.count;i++
{
                     sd.OnPing += new PingDelegate(OnHostPing);
                    _hosts.Add(sd);
                    iWorkItemsGrp.QueueWorkItem(new WorkItemCallback(sd.Start), new   object());
}
Posted
Updated 23-May-11 6:24am
v2

1 solution

Do you use this: Smart Thread Pool[^].

If so, ask the author of this article, at the bottom of this page.

—SA
 
Share this answer
 
Comments
sacraj 23-May-11 3:08am    
How Can I get his e-mail Id. Could not find it in his profile.
Sergey Alexandrovich Kryukov 23-May-11 18:44pm    
There are no public e-mails. As I say write by adding a comment at the button of the article page.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900