Subject RE: [IBO] Using ib_events: unassigned application handle ??
Author IBO Support List
You can add the IB_VCL unit to that data modules uses clause and that should
resolve this.
This is because the way you have the event alerter configured requires a
TTimer to poll its flag that says if an asynchronous alerter has arrived and
then to go ahead and execute the events with the main thread.

This allows your event alerter to keep all of the asynchronous aspects
behind the scenes so that you don't have to do anything further for things
to be multi-threading safe.

Hope this helps,
Jason Wharton
www.ibobjects.com


-----Original Message-----
From: IBObjects@yahoogroups.com [mailto:IBObjects@yahoogroups.com]
Sent: Thursday, May 21, 2015 3:07 AM
To: IBObjects@yahoogroups.com
Subject: [IBO] Using ib_events: unassigned application handle ??

Hi Jason,

I have a Delphi XE5 datamodule that is used in different programs.
On this datamodule, there are a TIBODatabase and a TIB_Events.
All programs connect to the same database and use the same libraries
(fbclient.dll)

At runtime, the database is connected ,and in the OnAfterConnect
trigger, the TIB_Events is populated with the desired events and
subsequently Registered:

ib_events1.Events.Clear;
ib_events1.Events.Add('data_changed');
Ib_events1.RegisterEvents;

The RegisterEvents method throws an error:
"unassigned application handler"
It does not fire the OnError event.

(no documentian about this error found)

It works okay in all programs, except one. What could be the issue?

tia!
John



------------------------------------
Posted by: John vdW <john@...>
------------------------------------

___________________________________________________________________________
IB Objects - direct, complete, custom connectivity to Firebird or InterBase
without the need for BDE, ODBC or any other layer.
___________________________________________________________________________
http://www.ibobjects.com - your IBO community resource for Tech Info papers,
keyword-searchable FAQ, community code contributions and more !
http://tracker.ibobjects.com - your portal to submit and monitor bug reports
http://community.ibobjects.com - your portal to purchase and upgrade
------------------------------------

Yahoo Groups Links