Re: Delphi and Socket Error 10022
- From: Jamie <jamie_ka1lpa_not_valid_after_ka1lpa_@xxxxxxxxxxx>
- Date: Wed, 25 Oct 2006 12:02:17 -0400
Steve wrote:
Lo AllWSAEINVAL
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)
(10022)
Invalid argument.
Some invalid argument was supplied (for example, specifying an invalid level to the setsockopt function). In some instances, it also refers to the current state of the socket - for instance, calling accept on a socket that is not listen
ing.
what this means is, your parameters must likely are fine how ever, you
could be experiencing a dropped socket or one that is busy doing something..
could be a problem with lack of response from a socket and your thread
then try's to do something else before the socket has completed on the last run.
--
"I am never wrong, once i thought i was, but i was mistaken"
Real Programmers Do things like this.
http://webpages.charter.net/jamie_5
.
- References:
- Delphi and Socket Error 10022
- From: Steve
- Delphi and Socket Error 10022
- Prev by Date: Re: Adding combobox to grid?
- Next by Date: Re: This (Javascript) function has an onClick event that calls a function that calls This function
- Previous by thread: Delphi and Socket Error 10022
- Next by thread: Create ODBC with SQLConfigDataSource to Excel-file
- Index(es):
Relevant Pages
|