在windows下,可能会出现995的错误,msdn对该错误的解释为:
The I/O operation has been aborted because of either a thread exit or an application request
并定义错误号码为:ERROR_OPERATION_ABORTED
表示是程序退出或者其它线程正在使用而导致的错误。
解决方法:在这种情况下,不要在线程中对有关句柄进行操作,而是放到线程外面
在windows下,可能会出现995的错误,msdn对该错误的解释为:
The I/O operation has been aborted because of either a thread exit or an application request
并定义错误号码为:ERROR_OPERATION_ABORTED
表示是程序退出或者其它线程正在使用而导致的错误。
解决方法:在这种情况下,不要在线程中对有关句柄进行操作,而是放到线程外面