Paul G. Tobey [eMVP] replied to Igor Golikov
11-Nov-09 12:05 AM
There are two things that come to mind: the framework itself is trying to do
something to an object that should not have that operation performed on it,
or you are performing an operation on an object that should not have that
operation performed on it. Obviously, trying to identify what object is
being done to and what is being done to it is the basis of figuring out what
to do about it, so you need to examine all of the exception information that
you get when it is thrown. It would be worth checking whether there are any
cases where you attempt a Select() on a socket that is a) closed, b)
uninitialized, c) in some intermediate state where Select has no defined
behavior (like calling it on a socket before you bind it, try to connect it
to a server, etc.)
Paul T.