Too many open files lazarus / 33-macOS - Mac OS X ---------------------------------------------------------------------- apeoperaio · 2021-01-22 13:35 When I try to open few thousands of files I get the error: 'Too many open files' I get this error on Mac but not on Windows. I am using lazarus fixes and lazarus trunk branches. I attached a sample project (it uses dropfiles on a form since I cannot load all the files using opendialog, see: https://forum.lazarus.freepascal.org/index.php/topic,52989.0.html) and a python script to create the files. Is it a limit of macos? How can I check the value of this constraint? Thank you. ---------------------------------------------------------------------- Martin_fr · 2021-01-22 13:43 It is (probably) an OS limit. Run: Code: Bash  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i ulimit -a ---------------------------------------------------------------------- 440bx · 2021-01-22 13:52 Quote from: apeoperaio on January 22, 2021, 02:35:35 pm open few thousands of files I get the error: Just curious, what are you doing that requires having several thousand files open at the same time ? ---------------------------------------------------------------------- winni · 2021-01-22 13:54 Hi! Whaatver strange things you do with thousands of open files .... To change the soft and hard limit of open files on Mac & Linux have a look at: https://wilsonmar.github.io/maximum-limits/ Winni ---------------------------------------------------------------------- apeoperaio · 2021-01-27 09:32 Thank you for your tips.