[Newbies] Do I need to close a FileStream?

Tim Johnson trilobyte at hoe.nu
Sat Mar 24 16:41:57 UTC 2007


On Mar 24, 2007, at 3:45 AM, Kyle Hamilton wrote:

> The underlying OS has only a certain number of file handles that it
> can maintain open at a time.  On UNIX-like systems, there is also
> possibly a maximum number of files per process.  If this limit is hit,
> then no additional files can be opened, and on any attempt to do so an
> error is returned.

For some reason I was confused and thought that Squeak's garbage  
collector would somehow make me immune from this.  Like when the file  
was no longer being used, it would be closed and purged.  Now I know  
otherwise :)

Thanks,
Tim


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/beginners/attachments/20070324/4819435e/attachment.htm


More information about the Beginners mailing list