Subject | TIB_Session question |
---|---|
Author | Don Schoeman |
Post date | 2006-07-10T09:16:51Z |
Hi all,
I'm using IBO 4.3.Aa.
Looking at the help file for TIB_Session, it says the following for the
TIB_Session.TimerInterval property:
snip: "If you are creating a DataModule for use in secondary threads,
setting the value to either 0 or 5000 will result in no timer active in the
secondary thread. This is recommended, for the reason described above. What
you should do is to make the thread which owns the session call the DoTimer
method directly, as a part of its own loop or workload."
My server application does have a main form, however, a seperate thread
contains the database components (on a datamodule) and performs all the
database access exclusively. I've set the TIB_Session component's
TimerInterval to "0" and I've also set the TIB_Events component's "Passive"
property to True. I then use the CheckEvents method whenever my thread is
idle to see if any events came through. The help also states that I should
call the TIB_Session.DoTimer method directly, I've looked in the code and
couldnt find the specified method. Is it possible that it has since been
replaced by something like TIB_Session.ProcessPassiveTasks, or is that
something completely different?
Best Regards,
Don Schoeman
I'm using IBO 4.3.Aa.
Looking at the help file for TIB_Session, it says the following for the
TIB_Session.TimerInterval property:
snip: "If you are creating a DataModule for use in secondary threads,
setting the value to either 0 or 5000 will result in no timer active in the
secondary thread. This is recommended, for the reason described above. What
you should do is to make the thread which owns the session call the DoTimer
method directly, as a part of its own loop or workload."
My server application does have a main form, however, a seperate thread
contains the database components (on a datamodule) and performs all the
database access exclusively. I've set the TIB_Session component's
TimerInterval to "0" and I've also set the TIB_Events component's "Passive"
property to True. I then use the CheckEvents method whenever my thread is
idle to see if any events came through. The help also states that I should
call the TIB_Session.DoTimer method directly, I've looked in the code and
couldnt find the specified method. Is it possible that it has since been
replaced by something like TIB_Session.ProcessPassiveTasks, or is that
something completely different?
Best Regards,
Don Schoeman