I used indy TCP to make chat application both in client and server.
after a time (about 3 hours upper), CPU of server.exe near 100%, make my system LAG
I know function sleep() can solve this problem but I dont know where to put function sleep in.
in client code or in server code,
or is there a better way for server.exe than use sleep ?
please help me in detail.
thank all experts.