-
Notifications
You must be signed in to change notification settings - Fork 6
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
AGS does not release file locks #7
Comments
It only happens for the .txt files, by the way — the .run/.iff files can be deleted and are not locked. |
I tried to fix this issue about a year ago, but only took a quick stab at it really. I wasn't able to release the file locks without crashing the app unfortunately. |
It seems like I simply forgot to Close after Open, doesn't I need to get my dev environment up and running again... |
I’ll give it another try tonight, or thereabouts. :) |
Maybe I double free'd the handle with my previous fix (which is strange since I did the null-check in both places). Only freeing in th except-block seems to work as expected. Currently I based the fix off my copy which I forgot had another feature already merged. PR:d that first. 🤗 |
Close file handle in load_text(), fixes issue #7
Seems to work 😊 |
Steps to reproduce:
The OS will now complain that the file is in use, and you need to reboot if you want to delete the file.
Obviously not a huge issue, but a bit annoying when you’re working on setting up the files and testing your setup. 😊
The text was updated successfully, but these errors were encountered: