[squeak-dev] FileStreams Limit

Louis LaBrunda Lou at Keystone-Software.com
Thu Feb 17 13:04:12 UTC 2022

Hi Jörg,

Just a guess but this may be a limit of the OS.  I think there is something similar in windows.  I think it can be
changed but I don't remember what or how.


On Thu, 17 Feb 2022 08:20:53 +0100, Jörg Belger <unique75 at web.de> wrote:

>Is there a limit with file streams? I cannot open more than 238 on my macOSX. The 239th fails and Squeak runs with 100% cpu power. I changed then the method StandardFileStream>>open:forWrite: and removed the #retryWithGC:until:forFileNamed:, because it looked to me, that it does not much things. Now I get a <nil> back from the primitive.
>| directory streams |
>directory := FileDirectory default directoryNamed: 'Test'.
>directory assureExistence.
>streams := (1 to: 239)
>	collect: [:index | directory fileNamed: 'test', index printString].
>streams do: #close
Louis LaBrunda
Keystone Software Corp.
SkypeMe callto://PhotonDemon

More information about the Squeak-dev mailing list