Icon View Incident Report

Serious Serious
Reported By: Maurizio Scalia
Reported On: 10/21/2005
For: Version 4.21 Build 10
# 2121 Exceptions in the OnBeforeUpdate or OnBeforeDelete Trigger Events Can Cause Invalid Parameter

I created a customized dbsrvr with OnbeforeUpdateTrigger as follows. I then launched the application and my custom dbsrv.exe and from my application I tried several times:

with MyTable do
Edit;
Post;
end;

First time a trigger error report with exact RecordID e ID_ORDER, but other times reports wrong RecordID and ID_ORDER (big numbers).

procedure TMyForm.EngineBeforeUpdateTrigger(Sender: TObject;
  TriggerSession: TDBISAMSession; TriggerDatabase: TDBISAMDatabase;
  const TableName: String; CurrentRecord: TDBISAMRecord);
begin
  try 
    raise exception.create(IntToStr(currentrecord.RecordId)+
 ' '+IntToStr(currentrecord.FieldByName('ID_ORDER').AsInteger));
  finally
  end;
end;



Resolution Resolution
Fixed Problem on 10/24/2005 in version 4.21 build 11


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

Image