Bauglir Internet library - Invalid file handle on linux lazarus / 38-Networking and Web Programming ---------------------------------------------------------------------- antispam88 · 2018-05-18 07:51 Hi, we are using the bauglir library for websocket communication on windows (7/10 32/64) and linux raspberry (raspbian gnu/linux 8 (jessie)). It is working on both platforms as expected, but sometimes in the destructor TWebSocketCustomConnection.Destroy the line fSendCriticalSection.Free throws the exception "invalid file handle" on raspbian. Does someone know anything about this error? Best regards, antispam88 FPC: 3.0.4 Lazarus: 1.8.0 SVN Revision: Windows 56594; Raspbian 57022 Windows: x86_64-sin64-win32/win64; Raspbian: arm-linux-gtk2 ---------------------------------------------------------------------- Thaddy · 2018-05-18 10:00 What is the link to that library? Then I can test it. To me it sounds more like programmer mistake right now (half a day every day I am on RaspBian). A small - compileable, fails or not -  code snippet - would also help.