Hello!
When I try saving an entity, an AV in the RTTI is raised.
The call stack clearly indicates that it's coming from the RTTI innards:
When I break, the code is this:
function GetClassInfo(AClass: TClass): PTypeInfo;
begin
if AClass = nil then
Exit(ATypeInfo);
Result := AClass.ClassInfo;
end;
That you can find in TValue.Make and the cursor is on the result line.
To me this clearly means that something has been freed somewhere it shouldn't have been otherwise the .Classinfo would work.
Going back in the code, Aurelius' RTTI Proxy Wrapper makes a GetValue call which ultimately fails.
Alas, there does not seem to be any sensible way to understand which object is going bad and I wonder if anyone has an idea of how to pinpoint this.
Suggestions?
Thanks!