Is TIBCAlerter thread safe?

Discussion of open issues, suggestions and bugs regarding IBDAC (InterBase Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
zd
Posts: 78
Joined: Sun 01 Jul 2007 13:16

Is TIBCAlerter thread safe?

Post by zd » Fri 24 Aug 2007 14:26

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!

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Mon 27 Aug 2007 10:49

The OnEvent event handler is called from the main thread when the application is idle.

zd
Posts: 78
Joined: Sun 01 Jul 2007 13:16

Post by zd » Sun 02 Sep 2007 06:48

Superb! Thank you :-)

Post Reply