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

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
 
A

Alex Feinman [MVP]

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top