Skip to content

Array of const broken in 32bit, Stack issue in 64bit #296

@TetzkatLipHoka

Description

@TetzkatLipHoka

The recent update broke the Array of const support in 32bit in some way.

This script worked fine on my previous build (I think about 85 commits ago)

uses
  SysUtils;

var
  i, j : Integer;
begin
  Help3.Clear;  
  for j := 0 to Help1.Count-1 do
    begin
    for i := 0 to Help2.Count-1 do
      Help3.Add( Format( Help2[ i ], [ Trim( Help1[ j ] ), Trim( Help1[ j ] ) ] ) );    
    Help3.Add( '' );
    end;
end.

Now it crashes on 32bit with script exception when trying to call "format".
On 64bit Format works fine but accessing Help1 inline with j > 0 returns an empty string
Ex:
Help[x]=" OK"
0 : Format( 'Test%s', [ Help1[0] ] ) -> "Test OK"
1 : Format( 'Test%s', [ Help1[1] ] ) -> "Test"

Visualisation
Working
Image

32bit, broken
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions