> ..happens, for instance, _if the destination Window has been destroyed after the call to PostMessage
Because the program is ending when the leak occurs that is exactly what I think is occurring. So, after I close all the clients, I call now server.ProcessMessages and that seems to handle the leak. Do you see any problem with that solution? Thanks for your help and time Arno. -- 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