Icon View Incident Report

Serious Serious
Reported By: Tomas R
Reported On: 10/9/2006
For: Version 4.24 Build 1
# 2214 Adding and Deleting the Same Record While Cached Updates Are In Effect Causes #9732 Error

While adding and deleting the same record in Cached Update state I get 9732 error.

procedure TForm1.Button1Click(Sender: TObject);

  function GenerateRandomArticleID: Integer;
  begin
    Randomize;
    Result := RandomRange(1000000, 9999999);
  end;

  function AddGKBDocument(ADataSet: TDBISAMDataSet;
                          ATopicID: Integer;
                          const ADefault: Boolean = true): Boolean;
  begin
    result := false;
    ADataSet.Open;
    ADataSet.Insert;
    ADataSet.FieldByName('ID').AsInteger := GenerateRandomArticleID;
    ADataSet.FieldByName('TopicID').AsInteger := ATopicID;
    ADataSet.FieldByName('Title').AsString := 'GKB Document';
    ADataSet.FieldByName('Link').AsString := 'main.kbd';
    ADataSet.FieldByName('Extension').AsString := 'kbd';
    ADataSet.FieldByName('Default').AsBoolean := ADefault;
    ADataSet.Post;
    result := true;
  end;
begin
  qDocument.BeginCachedUpdates;
  AddGKBDocument(qDocument, 1);
  qDocument.Delete;
  qDocument.ApplyCachedUpdates;
end;



Resolution Resolution
Fixed Problem on 10/12/2006 in version 4.25 build 1


Products Affected Products Affected
DBISAM CLX Client-Server
DBISAM CLX Client-Server with Source
DBISAM CLX Standard
DBISAM CLX Standard with Source
DBISAM VCL Client-Server
DBISAM VCL Client-Server with Source
DBISAM VCL Standard
DBISAM VCL Standard with Source
DBISAM VCL Trial

Image