App-Settings-Problem (SET file deleted after send settings to simulator)

Hello,

I have a problem with changing app settings in simulator (Eclipse Mars on Windows7, ConnectIQ-SDK 1.2.5, latest simulator and SDK versions installed).

In resource file there are defined several settings (boolean, numbers, lists). With the latest app version all worked fine (using some booleans, numbers and 2 lists). In the new version I added 6 new lists for colors selection.
Now after changing the settings in simulator (using the app settings editor in eclipse), the settings are stored in SET file only one time (first change). After changing them a second time, the SET file gets deleted. The onSettingsChanged method tries to read the values but only gets "null" for every option.

What is going wrong? Is there a limit for app settings (or size of SET file)? It seems that happens only using lists.
Could anyone give me a hint how to fix this error? Is it only a simulator problem and it will work on the real device? ...but I can't check this because I have to publish a public version and can't test with sideloading :(

Thanks
Ronny
  • You can use System.Stats.usedMemory in the simulator to see what's being used in compute(), etc.


    Hello Jim,

    thanks for this hint. I checked it in the simularor...

    After starting it increases up (the first 3 compute-calls:
    UsedMemory: 14192
    UsedMemory: 15216
    UsedMemory: 15448
    Is it increasing because of loading settings?

    Then it keeps constant (no fit simulation).

    After changing settings in Settings-Editor it's going down:
    UsedMemory: 14176 (read in onSettingsChanged)
    I think it's less because the datafield has no settings loaded.

    If the changed settings are loaded in addition to the current memory-usage then it could get over 16KB.

    Is it possible to check this in a suitable event/method?