Subject | Events and freeze.. |
---|---|
Author | John vd Waeter |
Post date | 2009-03-27T10:59:44Z |
Hi All,
Delphi 7, IBO 4.6A, FB 1.5.
My application wants to be informed of changes in a database.
If possible, I use a TIB_Events for this.
Sometimes it is not possible to use events, due to firewalls, using
superserver behind a NAT_router, or whatever. No problem, I can poll for
changes.
I would like the application to automattically try to use events and if
not possible, use polling.
But... if I call TIB_Events.RegisterEvents on a connection where no
secondary connection can be opened, following things happen:
1. After a delay of about 20 sec an error pops up saying that its
impossible to create a secondary connection for events. OK.
2. I cannot confirm (click on OK) the error. The app is frozen. Need
taskmanager to kill it.
If I catch the error in a try except, same thing happens. Freeze.
I usually put the call to RegisterEvents in the
IB_Connection.AfterConnect. If I try to registerEvents on a buttonclick,
same thing happens.
Any thoughts?
tia!
John
--
John vd Waeter
mailto:john@...
http://www.jvdw.nl
http://www.shotinthedark.nl
http://www.gps-carpool.nl
Delphi 7, IBO 4.6A, FB 1.5.
My application wants to be informed of changes in a database.
If possible, I use a TIB_Events for this.
Sometimes it is not possible to use events, due to firewalls, using
superserver behind a NAT_router, or whatever. No problem, I can poll for
changes.
I would like the application to automattically try to use events and if
not possible, use polling.
But... if I call TIB_Events.RegisterEvents on a connection where no
secondary connection can be opened, following things happen:
1. After a delay of about 20 sec an error pops up saying that its
impossible to create a secondary connection for events. OK.
2. I cannot confirm (click on OK) the error. The app is frozen. Need
taskmanager to kill it.
If I catch the error in a try except, same thing happens. Freeze.
I usually put the call to RegisterEvents in the
IB_Connection.AfterConnect. If I try to registerEvents on a buttonclick,
same thing happens.
Any thoughts?
tia!
John
--
John vd Waeter
mailto:john@...
http://www.jvdw.nl
http://www.shotinthedark.nl
http://www.gps-carpool.nl