Threading Issues
-
Hi I have a CAsyncSocket Class as a member of a CWinThread Class To start the TCP/IP conversation I do a PostThreadMessage to a Worker UI thread which has CAsyncSocket as a member and do a CAsyncSocket::connect However When the FrameWork calls both the CasyncSocket::OnConnect and CAsynScoket::OnSend I can tell Visual Studio Debugger -> Thread display that the thread id is that of the main thread I am having problems doing the subsequest CAsyncSocket::Send and am guessing this more than likely the issue Thanks
-
Hi I have a CAsyncSocket Class as a member of a CWinThread Class To start the TCP/IP conversation I do a PostThreadMessage to a Worker UI thread which has CAsyncSocket as a member and do a CAsyncSocket::connect However When the FrameWork calls both the CasyncSocket::OnConnect and CAsynScoket::OnSend I can tell Visual Studio Debugger -> Thread display that the thread id is that of the main thread I am having problems doing the subsequest CAsyncSocket::Send and am guessing this more than likely the issue Thanks
-
Hi I have a CAsyncSocket Class as a member of a CWinThread Class To start the TCP/IP conversation I do a PostThreadMessage to a Worker UI thread which has CAsyncSocket as a member and do a CAsyncSocket::connect However When the FrameWork calls both the CasyncSocket::OnConnect and CAsynScoket::OnSend I can tell Visual Studio Debugger -> Thread display that the thread id is that of the main thread I am having problems doing the subsequest CAsyncSocket::Send and am guessing this more than likely the issue Thanks
Your question is not clear...
-
Your question is not clear...
I contacted Joseph Flounder and He explained That CAsyncSocket notifications OnSend, OnConnect are intitally received in the context of the main thread I detach the socket do a PostThreadMessage to the Thread with the CAsynsocket derived member do a Attach and from that point on all notification are received in The UI CWinThread