Skip to content

Error TMVCAbstractSerializer invalid type cast in linux build #161

@anlopes123

Description

@anlopes123

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;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions