Icon View Incident Report

Serious Serious
Reported By: Kishore Sharma
Reported On: 8/2/2007
For: Version 1.05 Build 1
# 2435 Un-Optimized Locate Returns True for Tables with Deleted Rows that Satisfy the Locate

Suppose, say we have two records with value of Col1 = 2. In the below loop Delete should be called twice. But it is getting called after deleting the located records also, which is resulting in the below error:

---------------------------

Debugger Exception Notification

---------------------------

Project Project1.exe raised exception class EDatabaseError with message 'tblMemory: Cannot perform this operation on an empty dataset'. Process stopped. Use Step or Run to continue.

Note : In the above case I have only 2 records, so the table becomes empty with the second Delete.

while tblMemory.Locate('Col1',2,[]) do   //This should return False after deleting the Located records. But it is returning True.
  begin 
    tblMemory.Delete;   
  end;



Resolution Resolution
Fixed Problem on 8/4/2007 in version 1.05 build 2


Products Affected Products Affected
ElevateDB Additional Software and Utilities
ElevateDB VCL Client-Server
ElevateDB VCL Client-Server with Source
ElevateDB VCL Standard
ElevateDB VCL Standard with Source
ElevateDB VCL Trial

Image