UniAlerter problem

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
winwin
Posts: 2
Joined: Wed 14 Apr 2010 13:32

UniAlerter problem

Post by winwin » Wed 14 Apr 2010 14:15

Hi,
i can't use the same UniConnection both for UniQuery and UniAlerter.
as follows;

I have a UniConnection, a UniQuery, a UniAlerter, a DataSource and a DBGrid comp. on my Form. I have a update trigger on my Orders table that fires the event ( POST_EVENT update ). I'm update the Orders table data over the DBGrid. When i use the 1.option there is no problem. But in the 2. option, application still not responding after a few update. When i use a second UniConnection for UniAlerter then it work again. ( DB is Firebird 2.1 )

Code: Select all

procedure TForm1.UniAlerter1Event(Sender: TDAAlerter; const EventName,
  Message: string);
begin
// 1. option
  Memo1.Lines.Add(TimeToStr(time)+': '+EventName);
// 2. option
  UniConnection1.ExecSQL('insert into event values('''TimeToStr(time)+': '+EventName+''')',[]);
end;

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Fri 16 Apr 2010 07:01

Thank you for information. We have reproduced this problem and fixed it. This fix will be included in the next UniDAC build.
This problem occurs because Firebird client library version 2.1 and lower is not thread safe. As a temporary solution you can use the fbclient.dll library version 2.5.

winwin
Posts: 2
Joined: Wed 14 Apr 2010 13:32

Ok

Post by winwin » Fri 16 Apr 2010 14:41

Thanks. It's ok with Firebird-2.5-RC2 fbclient.dll for now.

Post Reply