Database file not released after modifying structure #1691
Details for the issue
This might be a Windows thing, so ideally, if someone can confirm on another OS? I presume as MacOS is based on Linux, it won't affect that or the specific Linux builds - @justinclift recently taught me about file locks on Linux ... or the lack thereof...
If a database structure is modified (and even if it is then cancelled) and the database closed in DB4S, the file cannot be renamed/moved, as DB4S still has a lock open on it. Even if another database is opened (and subsequently closed) the original database is still held open.
Mainly logging in case its an indication of a file handling issue which could grow over time as DB4S is being used.
What did you do?
Open database. Go to 'Database Structure' tab. Modify a table. Add a new field. Cancel out of all dialogs. Close database. Try and rename file.
What did you expect to see?
The file renamed.
What did you see instead?
An error that DB4S still had the file open.
Useful extra information
Here is a screencast.
0:10 - The file is open in DB4S, and the renaming fails as expected.
The info below often helps, please fill it out if you're able to. :)
What operating system are you using?
What is your DB4S version?
Did you also
The text was updated successfully, but these errors were encountered:
Turns out it was a plain and simple error in our code
Anyway, this should be fixed in tomorrow's nightly build