Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Insufficient RTTI available Error on some records #17

Open
GoogleCodeExporter opened this issue Jun 22, 2015 · 1 comment
Open

Insufficient RTTI available Error on some records #17

GoogleCodeExporter opened this issue Jun 22, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

I am using Delphi XE 
I have a record


     tmyrec=packed record
       myname:string ; 
       mysurname:string  ;
       myage:integer;
       mydate:tdatetime;
     end;

Using superobject I can convert it to a json string but when I try it with 

     tmyrec=packed record
       myname:string[50] ; 
       mysurname:string[50]  ; //I put limited strings here
       myage:integer;
       mydate:tdatetime;
     end;

I get error 
Insufficient RTTI available to support this operation.


How can I serialize such records? can you send an example? thank you.


Original issue reported on code.google.com by [email protected] on 8 Jun 2011 at 2:14

@GoogleCodeExporter
Copy link
Author

This is delphi RTTI's problem.
you can change your code to:

tmyrec_myname = string[50];
tmyrec_mysurname = string[50];
tmyrec=packed record
  myname:tmyrec_myname; 
  mysurname:tmyrec_mysurname; //I put limited strings here
  myage:integer;
  mydate:tdatetime;
end;

Original comment by [email protected] on 13 Jun 2012 at 4:01

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant