#1 2026-01-26 20:08:43

mrbar2000
Member
From: Brazil
Registered: 2016-10-26
Posts: 119

Compiling mormot Delphi 7

I have update my mormot to last version.
when compiling i get:

procedure TJsonWriter.AddJsonEscapeW(P: PWord; Len: PtrUInt);
...
    else
      inc(B, Utf16HiCharToUtf8(B + 1, c, P)); // handle UTF-16 surrogates
    if P >= PWord(Len) then     <<<<<<<
      break;
  until false;
end;

[Error] mormot.core.json.pas(7149): Operator not applicable to this operand type
[Error] mormot.core.json.pas(7169): Operator not applicable to this operand type

Offline

#2 2026-01-27 15:18:21

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 15,397
Website

Re: Compiling mormot Delphi 7

Please follow the forum rules and don't put so much text in the thread itself.

I can't reproduce it here, neither from the IDE or from a .bat / dcc32.exe file:

***** mORMot 2 integration using Delphi 7 for win32 *****
Borland Delphi Version 15.0
Copyright (c) 1983,2002 Borland Software Corporation
737349 lines, 13.55 seconds, 5087776 bytes code, 347809 bytes data.

Try to rebuild everything, delete the .dcu and see what's happening.
Ensure you have all Delphi 7 patches installed.

Offline

#3 2026-01-27 16:42:36

mrbar2000
Member
From: Brazil
Registered: 2016-10-26
Posts: 119

Re: Compiling mormot Delphi 7

I have deleted all dcu of my computer. then I open mormot2tests in my ide Delphi7
i have all update packs
when try compile i got erro:

https://www.imagem.app/image/Capturar.ByuEua

Offline

#4 2026-01-27 18:13:48

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 15,397
Website

Re: Compiling mormot Delphi 7

You have some old code.
Current line is

if PtrUInt(P) >= Len then

Offline

#5 2026-01-27 18:52:06

mrbar2000
Member
From: Brazil
Registered: 2016-10-26
Posts: 119

Re: Compiling mormot Delphi 7

I download last night master again. now works!

tnks

Offline

Board footer

Powered by FluxBB