#1 2020-09-14 10:23:03

tomek
Member
Registered: 2017-10-24
Posts: 46

TDocVariant Add on FPC

After updating mormot I've "EVariantDispatchError" in TDocVariant.DoFunction on FPC. I see that 'Add' function is disabled by {$ifndef FPC} directive with reason explained:
https://synopse.info/fossil/info/7bbf6c8e97992026.

Is it possible to partially restore that functions, eg by using more specific directive for known faulty scenarios? For me that functions worked well (win32, linux x86_64).

Regards

Offline

#2 2020-09-14 10:55:11

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,273
Website

Re: TDocVariant Add on FPC

It is disabled because late-binding functions are buggy with FPC.
This is what is explained: "they triggered random GPF so are unsafe due to RTL restrictions".
And random GPF are pretty difficult to debug... by definition... I guess it worked well by chance on your targets.

Please use _Safe() and TDocVariantData on FPC, as documented.

Offline

Board footer

Powered by FluxBB