Subject Re: Event progamming, application do not stop
Author tailuo2002
Thank you for your reply.

But, did you noticed that isc_que_events is for asynchronous
notification ? I want the application code keep waiting synchronously.


--- In firebird-support@yahoogroups.com, "Dimitry Sibiryakov" <SD@...>
wrote:
>
> 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.
>