Subject Re: Event progamming, application do not stop
Author tailuo2002
Helen Borrie ,

Thank you.


Here is from borland:
....
As soon as the application uses the API isc_wait_for_event() or ESQL
statement EXEC SQL EVENT WAIT, the application is put to sleep until
the event is posted.
...

But my application can't be put to sleep at all .




--- In firebird-support@yahoogroups.com, Helen Borrie <helebor@...>
wrote:
>
> At 03:04 PM 11/03/2006, you wrote:
> >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");
> >......
>
> isc_wait_for_event doesn't stop your application, it only holds
the
> client-server interface in a waiting state.
>
> ./heLen
>