Still the translation playing with my head (may be),
And still don't understand the problem quite right, i am running the code, and i am amazed like the famous meme, it is running without a
exception and memory corruption, the code i provided is only for one part, the most critical one you were after the
TCP reading shipping down the pipe, but there is still bugs and problem in the code so
1) there is few other places you need to fix the
VCL usage in them namely these
TProcessingThread.Execute
TSendeThread.Execute
TMyTCPServer.OnServerReadData
and that is server side
2) I don't understand you complain about 0, you are using multithreading and sharing data, so yes 0 is very possible here.
3) translation gives me this phrase "The write problem still exists." , i am not sure what this is about, as these lines doesn't show when i am running your original code, the code i didn't change anything except removing few inline variables
Code:
01-Server: Lesevorgang parallel aktiv
01-Server: Gesendet. Restanzahl: 99
01-Server: Lesevorgang parallel aktiv
01-Server: Gesendet. Restanzahl: 98
01-Server: Lesevorgang parallel aktiv
01-Server: Gesendet. Restanzahl: 97
01-Server: Lesevorgang parallel aktiv
01-Server: Gesendet. Restanzahl: 96
01-Server: Lesevorgang parallel aktiv
01-Server: Gesendet. Restanzahl: 95
01-Server: Lesevorgang parallel aktiv
These i don't see them !