Subject | Re: [IBO] Session Object |
---|---|
Author | Helen Borrie |
Post date | 2003-11-11T08:51:54Z |
At 03:14 AM 12/11/2003 -0500, you wrote:
different architectures. Think of the IB_Session as the Big Daddy of an
IBO client's entire conversation with the server and you're
close. TIB_Session looks after a lot more things than the VCL's TSession
does (read the IBO help for TIB_Session and its archangel
TIB_SessionProps.) "No stone left unturned".
As soon as your application is asked to create *any* ibo component, a
TIB_Session gets created first, if one doesn't already exist. Thereafter,
all IBO components get it as their IB_Session property.
If you're creating library apps you need to use an explicit TIB_Session as
the very first thing created, before any data access objects. That way,
each invocation of the library creates and destroys everything in good
order and you are not left with leakages and bad references.
Otherwise, you'll be using the auto-created IB_Session and you can access
its properties via TIB_SessionProps. Look at the properties to get an idea
of what's possible to set up and fiddle with.
too. Tech Info sheets, online FAQ ..
cheers,
Helen
>Hello all,"emulates" isn't the right word, since native IBO and the BDE use totally
>
>I've never worked with the BDE so I'm not really sure what the
>TIB_Session object does although I think it emulates the functionality
>in the BDE counterpart?
different architectures. Think of the IB_Session as the Big Daddy of an
IBO client's entire conversation with the server and you're
close. TIB_Session looks after a lot more things than the VCL's TSession
does (read the IBO help for TIB_Session and its archangel
TIB_SessionProps.) "No stone left unturned".
As soon as your application is asked to create *any* ibo component, a
TIB_Session gets created first, if one doesn't already exist. Thereafter,
all IBO components get it as their IB_Session property.
If you're creating library apps you need to use an explicit TIB_Session as
the very first thing created, before any data access objects. That way,
each invocation of the library creates and destroys everything in good
order and you are not left with leakages and bad references.
Otherwise, you'll be using the auto-created IB_Session and you can access
its properties via TIB_SessionProps. Look at the properties to get an idea
of what's possible to set up and fiddle with.
>Just curious. Just got the IBO comps and haveBe sure to catch up with the documentation resources on the website,
>been playing with them and reading over some of the documentation.
too. Tech Info sheets, online FAQ ..
cheers,
Helen