|
안녕하세요!
일단 소스를 보시고..
WaitForSingleObject(Mutex,INFINITE);
client = (Client *)clients->Items[0];
peerthread =(TIdPeerThread *) client->Thread;
try
{
if(peerthread->Connection->Connected())
peerthread->Connection->Disconnect();
}
catch(...)
{
}
ReleaseMutex(Mutex);
이와 같이 함수를 만든후....
disconnect할 클라이언트를 그 클라이언트의 쓰레드에서 disconnect를 하면
문제가 발생 되질 않는데 다른 쓰레드에서 disconnect를 때리면 흐미
non-socket이뜨는군여.. 또한 릴리즈에선 문제가 없는거 같더군여...
왜 이런지 아시는분 리플좀 달아 주십시요
그럼 수고들 하세요
|