Page 1 of 1

Is TIBCAlerter thread safe?

Posted: Fri 24 Aug 2007 14:26
by zd
Hi!

I'm experimenting with building a multi user application. When one user creates a new entry in a table, the entry will be visible for all other users who are currently viewing contents of the table.

In order to accomplish this, I'm using FireBird's event capability and the TIBCAlerter object.

My question is: My application can be in various states at various moments - showing a modal window or processing data in the database using the default ibdac connection.

Is TIBCAlerter thread safe? Will the "OnEvent" event of TIBCAlerter occur only when the application is idle, or it could occur straight in the midle of another procedure, while for example the procedure is fetching data from or writing data into the DB?

Thanks for the clarification!

Posted: Mon 27 Aug 2007 10:49
by Plash
The OnEvent event handler is called from the main thread when the application is idle.

Posted: Sun 02 Sep 2007 06:48
by zd
Superb! Thank you :-)