Subject | Re: Event progamming, application do not stop |
---|---|
Author | tailuo2002 |
Post date | 2006-03-11T06:01:18Z |
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:
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:
>&result_buffer,1, 'NEWSMS');
> 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,
> >the
> >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
> client-server interface in a waiting state.
>
> ./heLen
>