Subject Re: [firebird-support] FB API VC.net
Author Dimitry Sibiryakov
On 1 Mar 2005 at 13:21, Cesar L. Meloni wrote:

>I write an aplication in VC.net, and need detect events with
>isc_wait_for_event() function. * I can attach database. * can start
>transaction. * can reserve buffers (event_block) * but
>isc_wait_for_event non stop until event is fired. its return
>immediately. and isc_event_count return "OK event was fired". *
>Obviously any connection fire any event...

This is well-known gotcha of events' design. First call of
isc_wait_for_event return immediatelly and fill event counters with
current values.
Just call it once again.
--
SY, Dimitry Sibiryakov.