You are not logged in.
Pages: 1
Hi ab,
The following code works on Delphi7 but fails with SIGSEGV on FPC 3.1.1
{$MODE DELPHI}
uses
SynCommons;
var
VPay: Variant;
S: String;
begin
S := 'pos';
VPay := _Obj([]);
if not VPay.Exists(S) then
DocVariantData(VPay).AddValue(S, _Obj(['Count', 0, 'Sum', 0]));
VPay.Value(S).Count := VPay.Value(S).Count + 1;
VPay.Value(S).Sum := VPay.Value(S).Sum + Int64(1000);
end.
The fault is on DocVariantData.AddValue(). What is wrong?
Offline
I did encounter the same failure with FPC.
The latest working commit is 1.18.1575. Dated: 2015-06-28 19:23:33. Named: "new TDynArrayHashed methods".
After this commit, there are some TDocVariantData changes and enhancements that are not working anymore with FPC.
So, if you use this commit, all is working as expected, including mustache templates (my current problem).
Offline
Hello ab,
how can one get registered for accessing the fossil system? I haven't been able to login there with my forum user id and password and hence couldn't open a ticket for the FPC 3.1.1 DocVariant issue that is mentioned in this post.
Regards, Michael
Offline
Offline
Thank you, mpv.
I've now been able to create a ticket for this DocVariant issue.
Offline
Should be fixed by http://synopse.info/fossil/info/3420df26a0
See my comments in the ticket.
http://synopse.info/fossil/tktview/1364a0e3e1b2
Offline
All working 100% after your commit !
Thanks !!
Offline
Works for me too!
Thank you, ab, for your extraordinary support.
Offline
Pages: 1