10038套接字错误

问题描述:

有没有解决10038服务器错误的解决方案?我已经用c ++完成了编码;
服务器可以正常运行10到12个小时,但突然出现10038套接字错误

Is there any solution for 10038 server error .i have done coding in c++; the server runs fine 10 to 12 hours but sudenly it gives 10038 socket error

没有看到您的代码:您描述的症状听起来像是您正在泄漏内存/资源,即您忘记了释放/删除正在分配的对象。这也可能是时间问题。我建议您发布(缩减的)代码。

Without seeing your code: the symptom you describe sounds like you are leaking memory/resources, i.e. you are forgetting to free/delete objects you are allocating. It could also be a timing issue. I suggest you post your (cut-down) code.


10038(WSAENOTSOCK):在非套接字上进行套接字操作。尝试对
a套接字以外的对象执行
操作。套接字句柄
参数未引用有效的
套接字,或者对于select来说,
fd_set的成员无效。

10038 (WSAENOTSOCK): Socket operation on nonsocket. An operation was attempted on something that is not a socket. Either the socket handle parameter did not reference a valid socket, or for select, a member of an fd_set was not valid.