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


Here is the source:

int
main (int argc,char ** argv) {

char *event_buffer, *result_buffer;
long blength;

ConnectDB();
StartTran();
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");
CommitTran();
DisconnectDB();
}