Hello Gerben,
we could reproduce the problem and it looks like it's a bug in the TIBQuery class. A bit simplified, reassigning the RecNo property like this
IBQuery1.RecNo := IBQuery1.RecNo;
messes the dataset up if it's empty. SmartInspect 1.4 will contain a workaround for this behavior and if you need it earlier, you can change the SmartInspect.pas unit:
Just add the following code to line 11289 just before the SendContext call:
-------------------------------------
end;
-------------------------------------
And add the following code to line 11248 just before LOriginalRecordPosition is assigned:
-------------------------------------
if not ADataSet.IsEmpty then
begin
-------------------------------------
If you apply this fix, please make sure to use the source files instead of the precompiled dcu files. To do this, just replace the SmartInspect library path in Delphi's environment options with the SmartInspect\source\delphi directory.
Dennis Gurock,
Director & Co-Founder
Gurock Software