PDA

View Full Version : INI file change problem



MDeVol
06-02-2014, 11:48 AM
During an install I'm modifying an INI file to add some new keys. The keys are being added; but, I'm also getting an '= TRUE' line added to the file before the new keys.

Before changes:

[Services]
StabilizationEnabled = True
StabilizationIterations = 10
StabilizationIdleThreshold = 300
StabilizationPercentage = 1.5
SQCMeasurementEnabled = False
SQCMeasurementInterval = 36000
StabilizationRecipe = C:\ProgramData\Bruker\LumiMap\Config\StabilizationRecipe.elrcp
SQCMeasurementRecipe = C:\ProgramData\Bruker\LumiMap\Config\SQCMeasurementRecipe.elrcp
StartupRecipe = C:\ProgramData\Bruker\LumiMap\Config\Startup.elrcp
[VoltageCorrection]
MIN_NUM_POINTS = 10

After changes:

[Services]
StabilizationEnabled = True
StabilizationIterations = 10
StabilizationIdleThreshold = 300
StabilizationPercentage = 1.5
SQCMeasurementEnabled = False
SQCMeasurementInterval = 36000
StabilizationRecipe = C:\ProgramData\Bruker\LumiMap\Config\StabilizationRecipe.elrcp
SQCMeasurementRecipe = C:\ProgramData\Bruker\LumiMap\Config\SQCMeasurementRecipe.elrcp
StartupRecipe = C:\ProgramData\Bruker\LumiMap\Config\Startup.elrcp
= True <= Extra line
Vacuum=simulated <= New Key
Spectrometer=simulated <= New Key
Clamp=simulated <= New Key
SourceMeter=simulated <= New Key
Stage=simulated <= New Key
[VoltageCorrection]
MIN_NUM_POINTS = 10


Any ideas why '= TRUE' is being added to this file?

MDeVol
06-02-2014, 05:16 PM
I've discovered why '= TRUE' is being written to the ini file. When I looked at the IniFile table, the first entry in the table had no Key name and a value of TRUE. I removed this entry from the table and rebuilt the project and now the modified ini file doesn't contain the extra '= TRUE' line.

While the problem if 'fixed', it's still unclear how this entry ended up in the IniFile table.