Board index » delphi » Deadlock Update Conflicts with Concurrent Update
Martin Dew
![]() Delphi Developer |
Fri, 19 Mar 2004 03:22:01 GMT
Deadlock Update Conflicts with Concurrent Update
I have the above error when I try to do the following code.
System setup : IB 6.01 On a DataModule I have two sets of TIBQuery with their own TIBUpdateSQL, The TIBQuery's have cached updates = True. Imagine if you will a table that I am accessing records from , when I am So LogQuery is the TIBQuery I access these records from , and SetLockedQuery I have the following even handlers : LogQuery Before Edit : // I call a procedure to lock the specific record, with ADataset as TIBQuery do begin This fires and all seems fine. It is when I then come to save my changes to LogQueryAfterPost : if not DBLogTrans.InTransaction then The ( if LogQuery.UpdatesPending then LogQuery.ApplyUpdates;) line when Any Ideas what to look for please ???? Martin |