# | Line 138 | Line 138 | begin | |
---|---|---|
138 | try | |
139 | for i := 0 to FEvents.Count-1 do | |
140 | begin | |
141 | < | EventName := FEvents[i]; |
141 | > | EventName := FEvents[i]; |
142 | EventNames[i] := PAnsiChar(EventName); | |
143 | end; | |
144 | ||
# | Line 246 | Line 246 | end; | |
246 | ||
247 | procedure TFBEvents.SetEvents(EventNames: TStrings); | |
248 | begin | |
249 | + | if (EventNames.Count > 0) and not IsMultiThread then |
250 | + | IBError(ibxeMultiThreadRequired,['Firebird Events Handling']); |
251 | if EventNames.Text <> FEvents.Text then | |
252 | begin | |
253 | Cancel; |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |