synopse / mORMot

Synopse mORMot 1 ORM/SOA/MVC framework - Please upgrade to mORMot 2 !
https://synopse.info
785 stars 323 forks source link

Cannot compile under Delphi 12 due to the compiler errors #448

Closed myonlylonely closed 9 months ago

myonlylonely commented 9 months ago

Cannot compile under Delphi 12, the compiler throws an error:

[dcc32 Error] SynCrtSock.pas(5381): E1012 Constant expression violates subrange bounds

It seems this is no longer valid under Delphi 12.

Handle := -1;

We could change that to:

Handle := THandle(-1);

There are 2 lines in SynCrtSock.pas we should change: TCrtSocket.CreateSockIn and TCrtSocket.CreateSockOut

synopse commented 9 months ago

Please try with the last commit.

Just a backport what we did in mORMot 2.

myonlylonely commented 9 months ago

Yes, that fixed the compile issue.