Problem with tray icon - very strange behaviour
-
Hi! I'm really confused of what my program is doing. I have typical MFC application, serving as FTP Server. For easier controlling, I put the most used commands into tray icon menu. These commands' identificators are equal to the appropriate commands in main menu of the application. (eg. ID_SHOW_STATISTICS etc...). And now, the strange behavoiur - when some user is uploading data on the server (upload is performed in separate thread), and I choose on of the commands in tray menu, the server freezes up. In other words, uploading progress is frozen. I even exactly can see what routine my program stopped in - it is CAsyncSocket(or CSocket)::ConnectHelper(), function called from CSocket::Connect() routine. This routine never returns (I think that there is some calling of PumpMessage but I'm not sure...) BUT, when I choose the SAME command from main menu (not from tray), this problem doesn't appear. Can anybody explain this behaviour to me please ? I really don't know what to do now....... Any suggestion will be appreciated! Thanks in advance. Standa. Celebrate Mr. Cesilko!