by Big_Berny » Thu Dec 04, 2008 9:00 am
Hi devs,
I just discovered problem with AutoRateAccurate and MM Pre-3.1.
Problem:
To prevent the script from running multiple times at the same time, I write into the mediamonkey.ini 'ini.StringValue("AutoRateAcc", "IsWorking") = "True"'. Now I have a problem with this part since 3.1 because it seems to set IsWorking to "True" (I can see that if I run 'SDB.Messagebox ini.StringValue("AutoRateAcc", "IsWorking"), mtWarning, Array(mbOK)' afterwards WITHIN THE SAME SCRIPT-INSTANCE) but it doesn't really saves this modified mediamonkey.ini. At least the ini on the harddisk didn't get modified (directly), it seems like it would be in a sort of cache. If now a second instance of the script runs and tries to look if another instance is already running it thinks that it isn't because in the ini which it loads 'ini.StringValue("AutoRateAcc", "IsWorking") = "False"' and not 'ini.StringValue("AutoRateAcc", "IsWorking") = "True"', altough it should be.
I also tried to pause a instance to look the mediamonkey.ini in my text-editor and it really shows the old 'ini.StringValue("AutoRateAcc", "IsWorking") = "False"' altough the running scrpt shows me per msgbox that it should be 'True'.
Big_Berny
Hi devs,
I just discovered problem with AutoRateAccurate and MM Pre-3.1.
Problem:
To prevent the script from running multiple times at the same time, I write into the mediamonkey.ini 'ini.StringValue("AutoRateAcc", "IsWorking") = "True"'. Now I have a problem with this part since 3.1 because it seems to set IsWorking to "True" (I can see that if I run 'SDB.Messagebox ini.StringValue("AutoRateAcc", "IsWorking"), mtWarning, Array(mbOK)' afterwards WITHIN THE SAME SCRIPT-INSTANCE) but it doesn't really saves this modified mediamonkey.ini. At least the ini on the harddisk didn't get modified (directly), it seems like it would be in a sort of cache. If now a second instance of the script runs and tries to look if another instance is already running it thinks that it isn't because in the ini which it loads 'ini.StringValue("AutoRateAcc", "IsWorking") = "False"' and not 'ini.StringValue("AutoRateAcc", "IsWorking") = "True"', altough it should be.
I also tried to pause a instance to look the mediamonkey.ini in my text-editor and it really shows the old 'ini.StringValue("AutoRateAcc", "IsWorking") = "False"' altough the running scrpt shows me per msgbox that it should be 'True'.
Big_Berny