Subject RE: [IBO] BeforeExecute triggered too often
Author Jason Wharton
Thank you for pointing this out. Right off the top of my head what comes to
mind is I faintly recall there are some areas when parsing that the
BeforeExecute stuff was getting utilized and apparently I didn't do it
carefully enough. I'll add this to my list of things to look into and
resolve. I agree it shouldn't be doing what it appears to you to be doing.

Jason Wharton

> -----Original Message-----
> From: Nando Dessena [mailto:nandod@...]
> Sent: Thursday, December 02, 2004 2:13 AM
> To:
> Subject: [IBO] BeforeExecute triggered too often
> Hello,
> I have found a strange behaviour in IBO that Jason might want to
> investigate upon. I was trying to use the
> TIBOInternalDataSet.BeforeExecute event to do some logging, but I have
> found that it is called between two and four times when you call Open,
> and two times when you cann Execute. I think that it should be always
> called once, but it is debatable whether it should be called twice for
> Open.
> I have worked around the issue in a different way, also because that
> application has its library updates freezed for the time being and I
> couldn't upgrade IBO nor patch it myself, so no hurry.
> While I am at it, Jason, I suggest you move this line:
> FIB_Query := TIBOInternalDataset.Create( Self );
> from TIBODataset's constructor to a protected virtual method, so that
> enterprising people can subclass TIBOInternalDataset without pain.
> Currently it's impossible without resorting to illegal hacks.
> Ciao
> --
> Nando Dessena