Subject RE: [IBO] Re: Thread Safe?
Author Jason Wharton
> Ouch--I've been doing something wrong. I create all my data access
> objects with "nil" owner param. Haven't seen any problem and it's been
> running for years.

It's not likely a problem would arise since the session is used mainly for
read-only purposes by the data access objects associated to it. Where you
would run into troubles is in either the creation or destruction of objects.

> > Do not pass in NIL as the owner for any of
> > the other data access components unless you explicitly assign the
> > TIB_Session property after instantiating it. You can also use the
> > CreateForSession() constructor that allows you to give it an owner
> > and declare which session the component goes with.
>
> In one place I use a TIBOQuery, and this does not have a
> CreateForSession constructor--sounds like my old alternative is to not
> pass nil?

I'll see about adding in a constructor for this too.

Thanks,
Jason Wharton