Winsock Error Codes - Brought to you by Winsock-Error.com

10014 "Bad address."

WSAEFAULT (Winsock error number: 10014)

Microsoft say this about Winsock error 10014 - WSAEFAULT:

The system detected an invalid pointer address in attempting to use a pointer argument of a call. This error occurs if an application passes an invalid pointer value, or if the length of the buffer is too small. For instance, if the length of an argument, which is a sockaddr structure, is smaller than the sizeof(sockaddr).

Full details of Winsock TCP error 10014 - WSAEFAULT:

Berkeley description: The system detected an invalid address in attempting to use an argument of a call.

WinSock description: Same as Berkeley, and then some. Specifically, v1.1 WinSock spec notes that this error occurs if the length of the buffer is too small. For instance, if the length of a struct sockaddr is not equivalent to the sizeof(struct sockaddr). However, it also occurs when an application passes an invalid pointer value.

Developer suggestions: Always check the return value from a memory allocation to be sure it succeeded. Always be sure to allocate enough space.

   
This page is designed to help you to understand Winsock TCP error 10014. It will not necessarily mean you can instantly fix issues when your computer tells you that Winsock is having problems with code 10014, rather it will give you the necessary background information to help solve the matter.

Programming declarations for 10014 (WSAEFAULT):

C#
long WSAEFAULT = 10014 ;

VB.net
Dim WSAEFAULT As Long = 10014

VB6
Dim WSAEFAULT As Long
WSAEFAULT = 10014