- edited description
Crash accessing Dynamic Array within procedure
Issue #4
resolved
The following script code crashes with the current version (ee2dc49). I attached a testcase for inclusion in \Test\SimpleScripts\
var Stack: array of Integer = [];
procedure SimpleProc;
begin
Print(Stack.Peek);
end;
Stack.Add(42);
// Works
Print(Stack.Peek); // Calls TObjectVarExpr.EvalAsScriptObject with the array
// Crashes
SimpleProc; // Calls TProgramExpr.EvalAsScriptObject with the array which is obviously wrong
Comments (2)
-
reporter -
repo owner - changed status to resolved
Fixed Issue
#4(TArrayDataExpr.GetBaseDynArray) + test→ <<cset 0188c80c7946>>
- Log in to comment