Subject BeforeExecute triggered too often
Author Nando Dessena
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
http://www.flamerobin.org