I am having troubles with indys tcpclient and tcpserver.
I can't see why it can give so many problems just to disconnect a thread. It gives errors and everything.
Just wan't to be able to disconnect a thread and free it correctly.
i have tried this in hope to disconnect client:
and also AThread.Connection.Disconnect;
but everything seems to give errors in some way, and nothing is been free correctly.
Hope someone knows how to do a simple disconnect without getting errors.