View Issue Details

IDProjectCategoryView StatusLast Update
0005201MMW v4Framework: Scripts/Extensionspublic2009-02-22 13:14
ReporterTeknojunkyAssigned To 
PrioritynoneSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Product Version3.1 
Fixed in Version3.1 
Summary0005201: 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.
TagsNo tags attached.
Fixed in build1217

Activities

jiri

2009-01-15 10:48

administrator   ~0016223

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.

Teknojunky

2009-01-15 19:18

updater   ~0016246

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?

jiri

2009-01-16 09:35

administrator   ~0016260

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.

peke

2009-01-21 01:52

developer   ~0016328

Confirmed bad SDBIniFile::Flush behavior on 1215 using script example in http://www.mediamonkey.com/forum/viewtopic.php?f=6&t=36283#p187340

jiri

2009-01-21 11:47

administrator   ~0016332

Fixed in build 1217.

peke

2009-02-22 13:14

developer   ~0016893

Verified 1224