Hello, Can it be altered like this please:
if bFlag then SocketSessionClosed(Self, 0) else begin FCtrlSocket.Close; StateChange(httpReady); { 13/02/99 } end; end; instead of if bFlag then SocketSessionClosed(Self, 0) else FCtrlSocket.Close; StateChange(httpReady); { 13/02/99 } end; Because in this case the TriggerRequestDone is launched in the like StateChange(httpReady); { 13/02/99 }BEFORE all the messages are processed. It can also be launched by SocketSessionClosed with PostMessage!!! Best Regards, SZ -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be