Subject Re: IBO Exception not caught??
Author zzzento
--- In IBObjects@yahoogroups.com, "zzzento" <zzento@...> wrote:
>
>
>
> --- In IBObjects@yahoogroups.com, "G. Allen Casteran" <allen@> wrote:
> >
> > When I run this proc the exception can not be caught as an
> EIBO_ISCError.
> > Only the generic exception handler gets run. I can trap the exception
> as
> > generic exception in the "on e: Exception do" statement. but when I
> have
> > "on E: EIBO_ISCError do" the exception does not get cuaght.
>
>
> I'm experiencing this behaviour with last evaluation version (4.7.16)
> and a TIBOTable. Exception never gets into except block as
> EIBO_ISCError.
>
> .
> .
> .
> TIBOTable.Post;
> except
> on E: EIBO_ISCError do
> begin
> { this never executes }
> .
> .
> .
>
> Exception stops execution and debugger shows, continues execution with
> an error message box (I don't know why, because I thought exceptions
> don't show messages if handled), and stepping with F8 does not enter
> exception handling.
>
> Can someone explain this?
>
> Thank you in advance,
>
> Vicente.
>

I've something to add: this only happens when using Cached Updates.
Datasets with CachedUpdates = False pass exceptions as EIBO_ISCError,
but when CachedUpdates = True and something fails in ApplyUpdates,
exception is of unknown type.

I'm trying to get rid of all cached updates while converting a BDE
application to IBO, so I need TDataset compatible components. Is
something like PostRetaining available in TIBOTable?

Thanks,

Vicente.