[Qt-interest] Too many files open error on Mac OS
Serge
mb0 at km.ru
Wed Sep 29 07:42:57 CEST 2010
Hello,
My QT 4.5 GUI program opens a lot of files. On windows it is working
fine, but on Mac OS it receives error - too many files open.
If i type in bash:
ulimit -n
256
I found out how to fix it:
echo limit maxfiles 2048 1000000 > /etc/launchd.conf
#reboot
ulimit -n
2048
I deliver program to users in dmg archive.
They just mount it and launch program.
It can be a problem for some of them to make such a tuning in bash.
Can program itself increase number of files, it can open, without need
to reboot?
Thanks
More information about the Qt-interest-old
mailing list