Memory Leak for String value Parameter

Discussion of open issues, suggestions and bugs regarding IBDAC (InterBase Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Theprasit
Posts: 15
Joined: Fri 17 Nov 2006 04:01

Memory Leak for String value Parameter

Post by Theprasit » Fri 17 Nov 2006 04:08

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.

Alex
Posts: 655
Joined: Mon 08 Nov 2004 08:39

Post by Alex » Fri 17 Nov 2006 13:26

Thank you for information.
We have reproduced and fixed this problem. This fix will be included in the next IBDAC build.

Post Reply