#1 2023-06-05 14:40:24

razzmatazz
Member
Registered: 2023-06-05
Posts: 2

Internal error C13081 when compiling with Delphi 7

Hi!

I'm new to mormot2 and hence to this forum. smile

When trying to compile the source code with Delphi 7 I keep on getting this error:

[Fatal Error] mormot.core.data.pas(5801): Internal error: C13081

The error points me to:

function _BC_Ord(A, B: pointer; Info: PRttiInfo; out Compared: integer): PtrInt;
begin
  result := RTTI_ORD_COMPARE[Info^.RttiOrd](A, B, Info, Compared);
end;
     ^ right here

But to me this smells like something not related to the code. The error comes when the compilation slitghly exceeds 79k lines. I have searched the internet for the C13081 internal error just to see that the error is pretty rare and the posts I've found cast no light.

Any help or recommendation will be appreciated.
Thanks!

Offline

#2 2023-06-05 14:48:50

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

Re: Internal error C13081 when compiling with Delphi 7

I am not able to reproduce the problem here:

***** mORMot 2 integration using Delphi 7 for win32 *****
Borland Delphi Version 15.0
Copyright (c) 1983,2002 Borland Software Corporation
528600 lines, 5.97 seconds, 2214040 bytes code, 199713 bytes data.

Try to rebuild all units, i.e. by deleting any temporary .dcu.

Offline

#3 2023-06-06 09:27:50

razzmatazz
Member
Registered: 2023-06-05
Posts: 2

Re: Internal error C13081 when compiling with Delphi 7

Thanks, ab! I tried that and the result was the same.

Any other thoughts? Anyone?

Offline

#4 2023-06-06 09:52:28

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

Re: Internal error C13081 when compiling with Delphi 7

Are you using Delphi 7 with the update 1 patch?

Offline

#5 2023-06-29 22:30:30

Esequias
Member
Registered: 2023-06-29
Posts: 4

Re: Internal error C13081 when compiling with Delphi 7

The Delphi version can be checked in Delphi, in the menu, Help, About

I had that error and other errors using mormot.lib.win7zip, because I had Delphi Version 7.0 (Build 4.453), indicating that the update was not applied.

I downloaded the update available here

I installed the update and checked again and it had changed to Delphi Version 7.0 (Build 8.1), with that update all the bugs were gone.

Arnaud Bouchez and collaborators thank you very much for all the work you do.

Offline

#6 2023-09-29 15:44:09

Oumlike
Member
Registered: 2023-09-29
Posts: 1

Re: Internal error C13081 when compiling with Delphi 7

Hi
Me too i have the same error on 2 function (_BC_Ord & _BC_Float) after update to mORMot 2.1 stable.

if i put Result:=..  in comment it works, but these 2 functions will no longer play their role.

Offline

#7 2023-09-29 16:37:42

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

Re: Internal error C13081 when compiling with Delphi 7

I just compiled the current trunk with Delphi 7 with no issue.

Offline

Board footer

Powered by FluxBB