[Gambas-user] Corruption of application.conf with Raspberry Pi
Bruce Steers
bsteers4 at gmail.com
Sun Feb 28 22:03:23 CET 2021
Ps.
The default behaviour is to only save .conf file as program closes. If
program crashes settings are not saved unless you used Settings.Save()
already.
BruceS
On Sun, 28 Feb 2021, 19:34 Michele V., <akrobaticone at gmail.com> wrote:
> Gambas on raspberry Pi with raspbian
> Sometimes using class gb.setting the file .conf become corrupted and
> default value are loaded
> most likely this happen in case of crash of gambas program
> but i'm not completely sure
> in my gambas application whenever a value is changed a settings.save
> command is executed
> Raspberry Pi use a SD card and it is very slow in read write operation
> EXT4 with journaling delays writing change on SD card
> Every gambas application write the .conf file whenever is terminated
> I suppose the sum of that condition may cause the problem
> Another question:
> Is possible disable the .conf write at the end of application (specially
> in case of crash)?
>
>
>
>
> -------------------------------------------------------------------------------------------------------------------------------------------
> Io scrivo da UBUNTU GNU/LINUX
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20210228/49e3ee34/attachment-0001.htm>
More information about the User
mailing list