A bug in 1.00.0.6 related TOraTimeStamp

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
piney
Posts: 1
Joined: Fri 08 Aug 2008 23:22

A bug in 1.00.0.6 related TOraTimeStamp

Post by piney » Fri 08 Aug 2008 23:40

Bug #1: TOraTimeStamp is not freed when result set is empty.
It seems created as many as FetchRows property.
But when result set is empty, TOraTimeStamp is not freed.

If you run following code, your memory will be fully used
within several hours.

I struggled last several weeks with this bug. And lost faith from my customer almost :evil:

Code: Select all

rocedure TForm1.Button1Click(Sender: TObject);
begin
  with uniQuery1 do begin
    FetchRows := 1000;
    Sql.text := 'Select timestamp_f1 from tab1';
    Prepare;
    Open;
    // ... if result set is empty 
    Close
  end;
end;

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Tue 12 Aug 2008 08:50

We have fixed this problem. The fix will be included in the next build of UniDAC.

Post Reply