78 |
|
FEventsIntf: Firebird.IEvents; |
79 |
|
FAsyncEventCallback: TEventhandlerInterface; |
80 |
|
FSyncEventCallback: TEventhandlerInterface; |
81 |
+ |
FFirebird30ClientAPI: TFB30ClientAPI; |
82 |
|
procedure InternalAsyncWaitForEvent(EventHandler: TEventHandler; EventCallBack: TEventhandlerInterface); |
83 |
|
procedure ReleaseIntf; |
84 |
|
protected |
246 |
|
try |
247 |
|
if not FInWaitState then Exit; |
248 |
|
if FEventsIntf <> nil then |
249 |
< |
with Firebird30ClientAPI do |
249 |
> |
with FFirebird30ClientAPI do |
250 |
|
begin |
251 |
|
FEventsIntf.Cancel(StatusIntf); |
252 |
|
if not Force then |
275 |
|
|
276 |
|
FEventHandler := EventHandler; |
277 |
|
ReleaseIntf; |
278 |
< |
with Firebird30ClientAPI do |
278 |
> |
with FFirebird30ClientAPI do |
279 |
|
begin |
280 |
|
FEventsIntf := FAttachmentIntf.queEvents( |
281 |
|
StatusIntf,EventCallBack, |
300 |
|
begin |
301 |
|
inherited Create(DBAttachment,DBAttachment,Events); |
302 |
|
FAttachmentIntf := DBAttachment.AttachmentIntf; |
303 |
+ |
FFirebird30ClientAPI := DBAttachment.Firebird30ClientAPI; |
304 |
|
FSyncEventCallback := TEventhandlerInterface.Create(self,'Sync'); |
305 |
|
end; |
306 |
|
|