Subject Re: [firebird-support] Re: Event progamming, application do not stop
Author Dimitry Sibiryakov
On 3 Jun 2006 at 11:11, tailuo2002 wrote:

>
> char *event_buffer, *result_buffer;
> long blength;
> ISC_STATUS status_vector[20];
>
> my_connect_db();
> my_start_tran();
>
> blength = isc_event_block(&event_buffer, &result_buffer,1, "abc");
>
> isc_wait_for_event(status_vector,&SMSDB,(short)blength,event_buffer,
>result_buffer);
>
> printf("Event coming here.\n");

And? This is exactly what I told earlier: first call of
isc_wait_for_event() will immediatelly return you current value(s) of
counter(s). Next call of isc_wait_for_event() will actually wait for
event to happen.

--
SY, Dimitry Sibiryakov.