I have this structure
if not FScript.Compile then begin
Pair.Result.Clear;
Result := Pair.Result;
raise Exception.Create(Pair.Result.FieldName +': '+FScript.CompilerErrorToStr(0));
end
else begin
but FScript.CompilerMessage[0] always raises an Access Violation Error;