You are not logged in.
Pages: 1
The last month I am getting the following in unpredicted times:
20260129 09242262 ! EXC ERttiException {Message:"TRttiJson.ArrayFinalize: Integer has refcnt=2"} [Main] at 9af2db mormot.core.rtti.pas TRttiCustom.NoRttiArrayFinalize (9342) {6 2.43 2.62 4.6GB/7.7GB 66581b01}
windows Delphi 12.3 & 13.0
Where should I check for that?
Last edited by dcoun (Yesterday 09:51:24)
Offline
Is array of Integer different to Tarray<Integer> ? In delphi there are differences
Is there a way to get more debug, like in which record type (that has the integer array) it happed?
Offline
There is no difference between "TArray<integer>" and "array of integer" from the compiler point of view.
But the compiler is not the issue here.
Since it is from text definition, there is no type attached to itself. And the record type is not known in the current context...
But I guess expecting RefCnt=1 was plain wrong.
Please try with
https://github.com/synopse/mORMot2/commit/5ef4db849
Offline
To be honest, not all the record definitions involved in the part of the code that produced the error where declared with TRttiJson.RegisterFromText
I have changed it after this error.
I will test the commit
Thank you ab
Offline
Pages: 1