Thank you Greg. > You don't need the Thread Manager, you can just do all the TCP work on idle > events. In case some application doesnot give cpu time to other applications, that code work well? For example, some app show a modal dialog or non-background print work, I think TCP session will be timed out or buffer will be overflow... Anyway, thank you for your great code and kind advice. Osamu Shigematsu