#1 2024-10-01 08:53:15

sakura
Member
From: Germany
Registered: 2018-02-21
Posts: 239
Website

mormot.core.os.security breaks Delphi compiler

Hi Arnaud,

the Delphi compiler interprets ShortString as open array. And open arrays must not be used on inlined methods. Therefore it breaks on

procedure SidToTextShort(sid: PSid; var result: ShortString);
  {$ifdef HASINLINE}inline;{$endif}

Tested on Delphi 12.1 and 12.2

Regards,
Daniel

Offline

#2 2024-10-01 09:43:55

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,659
Website

Re: mormot.core.os.security breaks Delphi compiler

Yes, this is from daily commits - work in progress.
The trunk may be unstable during European daylight. smile

Please try
https://github.com/synopse/mORMot2/commit/49cac5ba

Offline

Board footer

Powered by FluxBB