Subject | Re: [IBO] IBO and ERRORS in memproof |
---|---|
Author | jwharton@ibobjects.com |
Post date | 2004-03-27T19:06:26Z |
Yes, that is what I mean. Pass in the Session or Connection object instead of nil.
You find out by having objects referencing one object from multiple thread contexts.
IBX gets away with nil owners because it doesn't actually have a Session object reference, and of course you don't get
the many benefits that IBO provides via its session object.
Jason Wharton
www.ibobjects.com
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Hi Tony,
Cursor := TIB_Cursor.Create(nil);
Could you please elaborate on that.
How did you find out that IBO does not "like" this?
I am creating IBO components that way all the time
in non-visual parts of my application and did not
think there was a problem with this.
Cheers,
Christian
You find out by having objects referencing one object from multiple thread contexts.
IBX gets away with nil owners because it doesn't actually have a Session object reference, and of course you don't get
the many benefits that IBO provides via its session object.
Jason Wharton
www.ibobjects.com
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Hi Tony,
> I did figure out that IBO did not like nil owners and have adjustedDo you mean something like
> my code.
Cursor := TIB_Cursor.Create(nil);
Could you please elaborate on that.
How did you find out that IBO does not "like" this?
I am creating IBO components that way all the time
in non-visual parts of my application and did not
think there was a problem with this.
Cheers,
Christian