It seems that I was to quick as I told you everything is working. I tested your code and it looks like it is working, but I think you are right on your guess that the solution is not thread safe.
If I call tcpClient_Connect, both, my Lazarus and QT application work as expected. The callback is done in both cases. But If I want to send ...
Skills: c, c++, qt