Icon View Incident Report

Serious Serious
Reported By: Anthony Lowery
Reported On: 7/10/2002
For: Version 3.11 Build 1
# 1152 Calling FindNearest and then Accessing a Blob Field Can Cause Client Engine to Lose Cursor Position

I have attached some source code and a table to show the problem. After running the exe click the load button. This will load a memo field from two records in the table. Now click the form 2 button. This does nothing except show the table in a grid. Now close form 2. Now click load again. This should load the memo field from the same records as before. This does not happen, only one of the records is loaded. If I keep clicking the load button eventually it will load both records.

procedure TForm1.Button2Click(Sender: TObject);
begin
  Memo1.Clear;
  tHeadlines.FindNearest(['08', StrToDate(Edit1.Text)]);
  while not(tHeadlines.Eof) do
     begin
     If (tHeadlinesSHDEPT.Value <> '08') or
        (tHeadlinesSHDATE.Value <> StrToDate(Edit1.Text)) then
        Break;
     Memo1.Lines.Add(tHeadlinesSHDESC.Value);
     Memo1.Lines.Add('--------------------------------------------------');

     tHeadlines.Next;
     end;
end;

procedure TForm1.Button1Click(Sender: TObject);
begin
  showform2;
end;



Resolution Resolution
Fixed Problem on 7/11/2002 in version 3.12 build 1
Image