I'm working on a project that let access people from many places in my country to a Database, this program may work with many conections at a time, at this moment i have a dynamic array of Winsocks, add is very simple... but when one of the connections is "closed by peer" I get the Close event, there i close the socket, i unload it, and when i try to reindex the other sockets i can't, i get a hole in my array, why?

can anyone help me?

on the MSDN CD says, try setting a new index, but when i try to assign an index to the object it generates an error, a friend told me "change the object name before unload it" but i don't know if change the name of an object can be possible, it is?

another idea?

thanx for any support.

JJDriVeR