Hi ppl, The problem is error #10061 (WSAGetLastError()) with connect() when I am trying to connect to a host that behind a router. I have already port-forwarded it and shut the firewall off, still the host refuses the connection activly. Please help.
J
Just Baballa
@Just Baballa
Posts
-
WSAGetLastError() 10061 with connect() -
TCP and Thread problemA helluva idea... I'll try that one, 10x
-
TCP and Thread problemHi ppl, I am writing a simple TCP chat app in MFC c++ (dialog based), using two threads - one for listening and acceping and another one is for receiving and sending. The problem actualy occurs when I close (click on OK or Cancel) while some thread is running. I get an assert or/and unhandled exception pointing to a my code or some code inside dbgheap.c (Ln 1974:
if (_BLOCK_TYPE(pHead->nBlockUse) >= 0 && _BLOCK_TYPE(pHead->nBlockUse) < _MAX_BLOCKS)
) I suspect something about threads that are still running, though I tried to end them with TerminateThread and ExitThread. Please help.