[Csnd] fprints issue

Hello, I'm trying to write to 10,000+ different files using the
fprints opcode on macOS and I think I'm running into a max open files
issue after about 8000 files have been written. After hitting the max,
using the fprints opcode issues warnings like INIT ERROR in instr 4
(opcode fprints) line 2619: error opening file
'json/6c9f37ab-392f-429b-8217-eac09f295362.9578.json'

Is there a way to close the files and release resources so there
aren't so many files open at the same time? ... or maybe there's
something else going on that's causing the init error?

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        Issues · csound/csound · GitHub
Discussions of bugs and features can be posted here

I'm fairly certain this is a max open files issue. Raising the max
open files on the OS level with `sudo launchctl limit maxfiles 655360
1048576` works around the issue, but it would be better if there was a
way to close each file after fprints is done with it.

I agree. Could you open a ticket in the issues tracker so that we don’t forget to look at this?

Does not calling ficlose do what you want? There is also a deinit callback to close files so I am not sure what else can do.

Yes, the `ficlose` opcode does what I want. Thank you.