Problem using Sockets on Windows CE 4.2 .net in C#

  • Thread starter Thread starter Finn
  • Start date Start date
F

Finn

I have an application that serves as a server that cliets hug into
using asyncrone socket communication.

it works fine most of the time, but from time to time i get and
exception:
Exception: System.IO.IOException
Message: Unable to read data from the transport connection.

Nested Exception

Exception: System.Net.Sockets.SocketException
Message: A blocking operation was interrupted by a call to
WSACancelBlockingCall

I cant do any thing to reproduce it regular, it happens from time to
time.

Searching the net har not given me any ideas of what is happening. I
found one post that said it is a bug in the compact framework and
would be fixed in the future.

Can any one verify this, or tell me what migth be causing the
exception, or how to correct it.

-Finn
 
I suspect that it happens when you socket connection attempt times out. How
about if you trap this exception and retry the operation?
 
Back
Top