Delphi and Socket Error 10022



Lo All

Within a service application, I create a socket component (based upon
OverByteICWSWSocket), assign an IP Address and port and connect to a server.

All's fine.

However occasionally I get "Error 10022 WSAAsyncSelect", which apparently is
to do with invalid arguments. However, the arguments have not changed - the
socket is created in response to a timer being fired. The parameters
supplied to the socket are the same each time. I cannot see what could be
changing to cause this error.

The socket is created within a thread, but it all takes place within critcal
sections. There is only ever one thread.

Any help would be gratefully appreciated.

Thanks

BTW Delphi 7 Prof, WinXP (Sp2)


.



Relevant Pages

  • Re: Definition of a socket on Suns website
    ... the server gets a new socket bound to a different port. ... It needs a new socket (and consequently a different port number) so that it can continue to listen to the original socket for connection requests while tending to the needs of the connected client. ...
    (comp.lang.java.programmer)
  • Re: socket communication: socket doesnt connect
    ... Microsoft MVP, MCSD ... As far as your server code goes, ... accept the listening socket. ... overlapped sockets with an I/O Completion Port. ...
    (microsoft.public.vc.language)
  • Re: millionth socket problem....
    ... > my client *is* working. ... > My server is the following, ... > use Socket; ... Your program worked for me, if I changed the port number to 7023, as ...
    (perl.beginners)
  • Re: Problem with socket
    ... Be aware that those port numbers are part of the IANA-assigned range. ... socket operations on sockets for which there are no handles... ... The result of using comma lists is ... you have used the completely meaningless word "crash" to describe your ...
    (microsoft.public.vc.mfc)
  • RE: call is blocked in recvfrom() and no further proceedings in Win CE
    ... In windows CE, I'm able to send a request but I'm unable to receive it. ... Create another socket & bind with server IP address. ... > My program has to send request to service through port 5070(in this port only ...
    (microsoft.public.windowsce.embedded)