Page 1 of 1

Memory Leak for String value Parameter

Posted: Fri 17 Nov 2006 04:08
by Theprasit
Hello,

I Just tested with IBDAC trial 1.10 using FastMM4 and found small memory leak when using both IBCQuery or IBCSQL with string value parameter. This will not happen if use Interger value.

Tested code:-

procedure TForm1.Button1Click(Sender: TObject);
begin
with IBCSQL1 do
begin
SQL.Text:= 'Update T1 Set F2=:P0 where F0=:P1;';
Params.ParamByName('P0').AsString:= '44';
Params.ParamByName('P1').AsInteger:= 1;
Execute;
end;
end;


I'm running with D7, FastMM4, IBDAC 1.10 trial.

Posted: Fri 17 Nov 2006 13:26
by Alex
Thank you for information.
We have reproduced and fixed this problem. This fix will be included in the next IBDAC build.