Subject RE: [IBO] ? Reason for error message. - 'Executing already or not in Passive mode'
Author Jason Wharton
> raise Exception.Create( 'Executing already or not in Passive
> mode' ); in
> module IB_Process is being raised, while I'm scolling through
> a dataset,
> while viewing graphs attached to the dataset using TeeChartPro.
> The graphs are displayed correctly, and update each time the cursor is
> moved to the next record.
> This error only occurs if you hold down the mouse key while
> clicking on
> next record in the IB_Navigationbar, and after a few records have been
> displayed (scrolled through) the error suddenly appears.
> I've never noted this one before.
> I use Ib_query to select the data from a table, then populate another
> Table programmatically for the actual graph display, then access this
> same table using IBOQuery.

The technical reason for this message is the Execute method is being called
in such a way that it is recursing back to itself when it shouldn't do that.

If you are in passive mode then calling Execute just processes one bit of
work and then releases control knowing that it will have additional calls
until it has completed execution in full. You can call Execute multiple
times when in passive mode. Though, it should not recursively call itself.

My guess is you should set the CallbackInc to -1 on that query to disallow
the possibility of calls getting stacked up in a way that leads to