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

Error TMVCAbstractSerializer invalid type cast in linux build #161

Closed
anlopes123 opened this issue Nov 7, 2018 · 4 comments
Closed

Error TMVCAbstractSerializer invalid type cast in linux build #161

anlopes123 opened this issue Nov 7, 2018 · 4 comments

Comments

@anlopes123
Copy link

anlopes123 commented Nov 7, 2018

I'm compiling a project in ubuntu linux and the error that I put in the title on the line below:
LogD ('Registering TypeSerializer for:' + string (ATypeInfo.Name))
I did the correction as per the code below

procedure TMVCAbstractSerializer.RegisterTypeSerializer(const ATypeInfo: PTypeInfo; AInstance: IMVCTypeSerializer);
begin
   {$IFNDEF AUTOREFCOUNT}
     LogD('Registering TypeSerializer for: ' + string(ATypeInfo.Name));
  {$ELSE}
     LogD('Registering TypeSerializer for: ' + ATypeInfo.Name.ToString);
  {$ENDIF}
  FTypeSerializers.AddOrSetValue(ATypeInfo, AInstance);
end;
@anlopes123 anlopes123 changed the title MVCFramework.Serializer.Abstract.pas Invalid typecast Error TMVCAbstractSerializer invalid type cast in linux build Nov 10, 2018
@igorscherer7
Copy link

Do you have any version started to complement in apache linux?

@danieleteti
Copy link
Owner

danieleteti commented Apr 15, 2020

DMVCFramework works on linux (ad console, daemon and apache module) since 3.x

Are you talking about this issue? Any others?

@igorscherer7
Copy link

I am testing a version delphimvcframework-3.1.1-beryllium-RC2 and giving the following error:

[DCC Error] MVCFramework.Serializer.JsonDataObjects.pas(1088): E2010 Incompatible types: 'string' and 'Byte'

@danieleteti
Copy link
Owner

Please, use the last version when report issue please.

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

No branches or pull requests

3 participants