> It happens if I'm sending from a thread or even only from the > main thread (from a timer), please check this demo app:
I look very briefly at your demo, it uses the non-thread aware socket server, and creates one single thread to send data to all clients, with no locking attempts or even a message loop in the thread. Your application should be based on TSslWSocketThrdServer which creates one thread per client, and handles all the threaded messages correctly. You should not need to create any threads yourself, although I guess extra threads within a client would not harm provided they do not use ICS functions. As I said before, I've never used TSslWSocketThrdServer myself, and it does not yet support multi-listen or advanced SSL stuff like IcsHosts which simplify SSL programming considerable. Angus -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be