Error Message:

WINSOCK Error: Bad file number.

Explanation:

The specified file number might not be a valid file handle value or it does not refer to an open file. An attempt might have been made to write to a file or device opened for read-only access. Or, the socket input parameter is not a valid socket handle: either it never was valid; or it is a file handle (not a socket handle); or, if it was a socket handle, it has been closed.

User Action:

If this message was displayed when you tried to open or write to a file, check the permissions on the file or directory that you were trying to open. Otherwise, no user action is required.