Subject Re: Event progamming, application do not stop
Author tailuo2002
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.


--- In firebird-support@yahoogroups.com, Helen Borrie <helebor@...>
wrote:
>
> At 02:23 AM 11/03/2006, you wrote:
> >Hi,
> >
> >I'm using FB 1.5.2 under linux.
> >
> >After calling ISC_EVENT_BLOCK, the application did not stop. I
think
> >it should wait event here.
>
> No. The event block just tells the server which event[s] it is
> likely to be interested in, i.e. it defines the event parameter
> block, causing the server to allocate space for it and assign
> starting values. The server then creates a record for the event
in
> the RAM-resident event table
>
> Use isc_wait_for_event() to register interest in a specific
> event. This call will cause the interface to pause until a
> transaction that posts the registered event is committed.
>
> ./heLen
>