View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0005201 | MMW v4 | Framework: Scripts/Extensions | public | 2009-01-14 23:00 | 2009-02-22 13:14 |
Reporter | Assigned To | ||||
Priority | none | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 3.1 | ||||
Fixed in Version | 3.1 | ||||
Summary | 0005201: INI not updated until mm closed | ||||
Description | if you however use it as SDB.IniFile.StringValue("x", "y") = "z" then the change will be immediatelly written to disk. Jiri http://www.mediamonkey.com/forum/viewtopic.php?p=185497#p185497 The above statement is currently not accurate in 1213 (and possibly earlier builds), ini changes are not written until app close. | ||||
Tags | No tags attached. | ||||
Fixed in build | 1217 | ||||
|
Fixed in build 1214. - The changes are actually only written to disk when all instances of the ini file are destroyed (i.e. in all scripts!). I added SDBIniFile::Flush method, which can be called in order to gain addition safety. |
|
Thanks for the flush method, that should be useful in various situations. But your comment regarding the changes written when all instances of ini file does not seem accurate, given the statement: SDB.IniFile.StringValue("x", "y") = "z" is not an object to be destroyed? |
|
Yes, it is, but as I wrote all instances in all scripts must be destroyed, so you possibly have another script that has ini file open. Try to disable all scripts and the code above really should update the ini file immediatelly. |
|
Confirmed bad SDBIniFile::Flush behavior on 1215 using script example in http://www.mediamonkey.com/forum/viewtopic.php?f=6&t=36283#p187340 |
|
Fixed in build 1217. |
|
Verified 1224 |