问个关于TCommunication的问题,知道的说下谢谢咯
昨天在网是找了个Builder下的Winsocket Server程序,在监听线程里如果有Client连接成功就执行
TCommunication pCThread=new TCommunication(m_AcceptSocket,FALSE);
pCThread->WaitFor();
我试了下,可是一有Client连接成功后,在运行完 TCommunication::Execute()里面的代码后进入TCommunication::~TCommunication(){ 里面无代码 },出了析构函数就会提示错误“thread error:句柄无效,(6)”,初次接触,请指点!