I have very very strange behavior of the frxQuery, when setting or reading property SQL.
This is your code in frxDACComponents.pas:
Code: Select all
function TfrxDACQuery.GetSQL: Tstrings;
var
  i: Integer;
begin
  AssignStrings(FSQL, FQuery.SQL);
  Result := FSQL;
end;
procedure TfrxDACQuery.SetSQL(Value: Tstrings);
begin
  AssignStrings(FQuery.SQL, Value);
end;
Therefore, both functions should be wrong, they should be:
Code: Select all
function TfrxDACQuery.GetSQL: Tstrings;
var
  i: Integer;
begin
  AssignStrings(FQuery.SQL, FSQL);
  Result := FSQL;
end;
procedure TfrxDACQuery.SetSQL(Value: Tstrings);
begin
  AssignStrings(Value, FQuery.SQL);
end;
So, please, can you tell me, why there is an stack overflow when changing both? Is there any other place in source it is corresponding with?
Best regards
Hans