logo       

Re: Do I need to close a FileStream?: msg#00149

lang.smalltalk.squeak.beginners

Subject: Re: Do I need to close a FileStream?


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


_______________________________________________
Beginners mailing list
Beginners@xxxxxxxxxxxxxxxxxxxxxxxxxx
http://lists.squeakfoundation.org/mailman/listinfo/beginners
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise