You are not logged in.
Pages: 1
Hi AB
today i updated my mORMot and now i get an C0000005 in _JS_Enumeration line Ctxt.W.AddU(Data^); (Data = $9) (Not a valid Adress)
This is called from _JS_RttiCustom.
I Replaced the _JS_RttiCustom with the former one and no Exception is raised and JSON produced as expected.
You patched it in Commit: 7d39c5ff4f4faac2a104112514ff290394a08ef7
Rad Studio 12.1 Santorini
Offline
What is the serialized class or record definition ?
Perhaps you have a class property which is nil.
Please try https://github.com/synopse/mORMot2/commit/36fcd891
Offline
Ty Arnaud
it works without Exception now !
The Property raising Exception was an Enumeration like this:
TMyClass = class(TSynPersitent)
protected
...
fState : TMyState;
...
published
property ServerState : TMyState read fState;
...
Nothing speciell state had Value 3
This was the last value before Exception in JS_RttiColumn p^.name
Rad Studio 12.1 Santorini
Offline
Pages: 1