![]() Squeak Smalltalk : System : ![]() File Handle Close Or Inspect |
> 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.