Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Files dropped in the image may be never released #103

Open
LinqLover opened this issue Dec 8, 2023 · 0 comments
Open

Files dropped in the image may be never released #103

LinqLover opened this issue Dec 8, 2023 · 0 comments
Labels
bug [WHAT] Something isn't working as expected. Automated tests beneficial. :- morphic [SCOPE] The issue is related to the Morphic framework. user [SCOPE] It is for the (maybe non-programming) (end-) user: designer, artist, writer, gamer, ...

Comments

@LinqLover
Copy link
Contributor

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.

@LinqLover LinqLover added user [SCOPE] It is for the (maybe non-programming) (end-) user: designer, artist, writer, gamer, ... morphic [SCOPE] The issue is related to the Morphic framework. bug [WHAT] Something isn't working as expected. Automated tests beneficial. :- labels Dec 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug [WHAT] Something isn't working as expected. Automated tests beneficial. :- morphic [SCOPE] The issue is related to the Morphic framework. user [SCOPE] It is for the (maybe non-programming) (end-) user: designer, artist, writer, gamer, ...
Projects
None yet
Development

No branches or pull requests

1 participant