ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> squeak
squeak
Re: [Q] How do I close file handles within Squeak?
by Ned Konz other posts by this author
Feb 18 2003 7:37PM messages near this date
[Q] How do I close file handles within Squeak? | Licensing again
On Tuesday 18 February 2003 11:23 am, Brent Vukmer wrote:
>  I'm running on Win2k.  I see ( via the invaluable "procexp" tool )
>  that Squeak.exe has a handle on the "Cryptography.cs" file.  Is
>  there a way within Squeak to discover what files it has open, and
>  then to close orphan file handles?

There should be no "orphan" file handles. OS level file handles are 
closed upon a GC, or sooner if a file is explicitly closed.

You can do something like: 

Smalltalk garbageCollect.
(FileStream allSubInstances select: [ :ea | ea closed not ]) inspect.

-- 
Ned Konz
http://bike-nomad.com
GPG key ID: BEEA7EFE
Thread:
Brent Vukmer
Ned Konz

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved