Subject | Re: Event progamming, application do not stop |
---|---|
Author | tailuo2002 |
Post date | 2006-03-11T04:04:27Z |
heLen:
I have called ISC_WAIT_FOR_EVENT , but it still DO NOT wait.
It printed "hello" immediatly.
.....
blength = isc_event_block(&event_buffer, &result_buffer,1, 'NEWSMS');
isc_wait_for_event(status, &SMSDB, (unsigned short)blength, \
event_buffer, result_buffer);
printf ("hello\n");
......
--- In firebird-support@yahoogroups.com, Helen Borrie <helebor@...>
wrote:
I have called ISC_WAIT_FOR_EVENT , but it still DO NOT wait.
It printed "hello" immediatly.
.....
blength = isc_event_block(&event_buffer, &result_buffer,1, 'NEWSMS');
isc_wait_for_event(status, &SMSDB, (unsigned short)blength, \
event_buffer, result_buffer);
printf ("hello\n");
......
--- In firebird-support@yahoogroups.com, Helen Borrie <helebor@...>
wrote:
>
> At 11:15 AM 11/03/2006, you wrote:
> >Helen Borrie:
> >
> >Thank you for your reply.
> >
> >When I run the application , there are no any database activities .
> >That is , no event occur. So ,the application SHOULD wait , but it
> >DOES NOT wait.
>
> The application won't wait until you ask it to wait, by calling
> isc_wait_for_event() on an event that you have previously registered
> as an EPB by using ISC_EVENT_BLOCK.
>
> ./heLen
>