danieleteti / delphimvcframework

DMVCFramework (for short) is a popular and powerful framework for WEB API in Delphi. Supports RESTful and JSON-RPC WEB APIs development.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error TMVCAbstractSerializer invalid type cast in linux build

anlopes123 opened this issue · comments

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;

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

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

Are you talking about this issue? Any others?

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'

Please, use the last version when report issue please.