Given the error, I can only guess that it might be one of three things: 1) You're executing that in a loop, and not closing sockets when you're done. 2) The user you're executing as has a very low socket or file descriptor limit set by the system's admin. 3) The system has something else running on it that is eating up all its sockets or FDs. Hard to say more without more details.
Also, rather than using [ b ] tags to make your code bold, please UseCodeTags to make it readable.
Joined: Nov 02, 2011
I have very big code..So I cant paste it. Are you mentioning any function which will cause this problem. Can you please correct me where to close that function...I have some other parts of code below..Please let me know if you want any specific information.
Probably unrelated to this issue, but this first line is useless. You create an array that can store 100,000 BaseClass references, then immediately discard it because you assign a different value to the variable.