I am writing what I thought was a simple chat client, but I'm running into
problems.
The client program has a main frame and then a childMDI window which
displays the current chat room. The childMDI window spawns a thread which
listens for data coming through a socket from a chat server. The thread
updates the window with any new information.
This works fine. However, the server can send commands which affect the
client program. In this case, the thread catches the command and needs to
call a function on the main frame. This hangs the program. The thread can
call functions and invoke ProcessEvent for the childMDI, but any attempt to
reach the main frame results in a lockup.
any suggestions?
Ben