Protection by multithread using SendMessage in lNet component lazarus / 38-Networking and Web Programming ---------------------------------------------------------------------- mlody87 · 2016-03-08 18:59 Do you know: Is in lNet component (TCP connection) pretection by using SendMessage in multithread application? Or I should use Critical Section every time when I use SendMessage? I was looking in http://wiki.freepascal.org/lNet documentation but I cant find this. ---------------------------------------------------------------------- Leledumbo · 2016-03-09 01:34 If it's not mentioned in the documentation, then never assume any thread safety. Indeed the source code agrees with that, you can easily inspect that SendMessage simply wraps Send which itself is not protected whatsoever. ---------------------------------------------------------------------- JD · 2016-03-09 06:31 On https://lnet.wordpress.com/, it says that Code: [Select]Short history: As of version 0.3 the package is only single-threaded. I’ve dropped multithreaded version and now use exclusively LCL features to work. So I guess it is not multithreaded, AFAIK. JD