-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 06/21/2011 07:11 PM, Matteo Sisti Sette wrote:
Oh my god that's bad news... How many files is the "limit"?
dunno, probably depends on your system
Do text files opened with [textfiles] also count?
no. the problem is, that pd and an external like Gem might use a different libc library. if the file is opened from within pd.dll, it might be impossible to close from Gem.dll, leaving a dangling file reference.
since [textfile] lives withing pd.dll, it will use the same libc implementation to open and close the file-handle, and thus everything works as expected. however, when using any external, the problem might occur.
note, that most externals bundled with PdX probably won't exhibit the problem, as they are all compiled and linked against the same libc. Gem is different, as PdX simply includes a pre-compiled binary (compiled with M$VC)
with Pd-0.43, there is finally a sys_close() function, that closes a filehandle opened within pd.dll within the same context.
fmasdr IOhannes