My application contains the following piece of code:
try
ADOTable1.Delete;
except
on E: EOleException do HandleDeleteException;
else
MessageDlg('Could not delete record.', mtError, [mbOk], 0);
raise;
end;
If I step through this code using the debugger, I get a message stating that
the line ADOTable1.Delete has raised the exception class EOleException. If
I compile and run my application, repeating the steps that generated the
EOleException in the debugger, my application executes the else clause in
the above code. So the debugger tells me that my code raises an
EOleException, but I can't seem to handle that EOleException.
I am using Delphi 5 with Update 1, ADOExpress with Updates 1 and 2, Windows
NT, and Access 2000.
What am I doing wrong?
Thanks in advance,
David Balsley
You probably are not doing anything wrong. There are some places in the
ADOExpress components code that use a Try/Except block to suppress errors your
are probably running into one of these.
--
Brian Bushay (TeamB)
Bbu...@NMPLS.com
The original post your responding to is not clear enough to make that final a
determination.
Now, even ds3 fails (ie. an exception is raised), the updates to ds1 and ds2
are applied. I'm using Access2000, which I thought supported transactions
and rollbacks (could be wrong - I admit I don't know a whole bunch about
Access). ??
Dub
Brian Bushay TeamB <BBu...@Nmpls.com> wrote in message
news:7t8vdtok5096qqj3k...@4ax.com...
There is a problem with batchupdates when using multiple batches. If an update
fails previous batches updated in the same transaction will not be returned to
updated status. Is this what you are referring to?