squeak-smalltalk / squeak-object-memory

Issues and assets related to the Squeak object memory.
https://bugs.squeak.org
MIT License
11 stars 1 forks source link

Files dropped in the image may be never released #103

Open LinqLover opened 7 months ago

LinqLover commented 7 months ago

Because probably no one knows who should be responsible for closing the relevant streams.

Drop files events are the only type of the that MUST be handled to avoid keeping the streams open. As an advocate of the #readOnlyFileNamed:do: pattern (i.e., executeAroundMethod is responsible for closing), I wish we could do something similar close to HandMorph>>#generateDropFilesEvent:. Maybe this method should only check for the drop file names and handlers (such as the world) should be responsible for opening and closing the files.