You are not logged in.
A mormot2 daemon does not follow the configuration after an update. I using an inherited class from TSynDaemonSettings with extra properties in the published section and the config file is an INI file.
The same source compiled with Delphi it works ok, but with FPC all boolean directives are taking all the false value. I do not know from which version of Mormot it started to happen.
My FPC version is Lazarus 2.2.4 (rev lazarus_2_2_4-0-g06a78ed923) FPC 3.2.2 x86_64-win64-win32/win64 and even with last versions it is the same.
I tried for the first time the debugger from FPC and I found that the problem should be in line 4243 from mormot.core.data, "if p^.Prop^.SetValueText(Instance, v) then" but even with O0 optimization the debugger shows only assembly when calling this function and it is impossible for me to follow.
string and integers work without problem
Any ideas? Thank you in advance
Offline
p^.Value.Kind is rkBool
p^.Prop^ is shown as TRttiProp but I can not have any of each properties in the debugger, and evaluating it as expression in the debugger I am getting "TRttiProp ()"
Offline
Should be fixed with https://github.com/synopse/mORMot2/commit/b0a51d12
You can now use case-insensitive false/true/yes/no in the INI field.
Offline
Thanks a lot @ab, it works now
Offline