You are not logged in.
Pages: 1
After commit e6bf459b17a676bd052d09ccab21ea76413cb876 I am getting record finalization error with the following stack:
Project pc.exe raised exception class EVariantBadVarTypeError with message 'Invalid variant type'.
https://gist.github.com/dkounal/99361a1 … bb4296bfa2
Offline
Is it still the case?
It sounds like if the variant is identified as a varArray, which should not be possible with pure mORMot code.
We would need some minimum reproducible example, please.
Offline
please change in mormot.core.rtti.pas line 6877 to the following:
if (ElemInfo <> nil) and
(p^.length > 0) then
FastFinalizeArray(Value^, ElemInfo, p^.length);It seems to work ok with the above
Offline
It is really unexpected to have p^.Length = 0 here.
A void dynamic array is expected to be stored as a nil pointer, not something with Length=0 in its headers.
I suspect there is something wrong elsewhere.
At least I have hardened FastFinalizeArray() usage:
https://github.com/synopse/mORMot2/commit/aad4c731a
Offline
Pages: 1