LeTay
asked on
Error E2158 compiling with Delphi XE10 Seattle
I use the function SetLength at several places in one Delphi application, without any compilation errors
Now I add something like this :
procedure MyProc(var M:array of string);
begin
.../...
SetLength(M,0);
.../...
end;
and get E2158 System unit out of date or corrupted : missing @Clr !!!
Now I add something like this :
procedure MyProc(var M:array of string);
begin
.../...
SetLength(M,0);
.../...
end;
and get E2158 System unit out of date or corrupted : missing @Clr !!!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I used a workaround that ... works !
I defined
TRecArray = record
Elements:array of string;
procedure MyProc (var M:TRecArray);
begin
.../...
SetLength(M.Elements,0);
.../...
end;
Works !