Subject Re: [firebird-support] Re: Event progamming, application do not stop
Author Dimitry Sibiryakov
On 5 Aug 2006 at 12:44, tailuo2002 wrote:

>What do you mean 'right event buffer' ? Could you give me an example
>?

Buffer, returned by first call of isc_wait_for_events(), filled
with initial counters.

Something like this:

isc_wait_for_event(status_vector, DbCfg, EventBlockLength,
EventBuffer, ResultBuffer));
CopyMemory(EventBuffer, ResultBuffer, EventBlockLength);
isc_que_events(status_vector, DbCfg, event_id, EventBlockLength,
EventBuffer, ast_routine, Self));

>How do you think that I should call isc_wait_for_event twice ? I can't
>get any anwser from the interbase document.

Counters. Events are working through counters. You must get current
values somehow.

--
SY, Dimitry Sibiryakov.