Subject | Re: [IBO] "Session is undefined" error when destroying a session |
---|---|
Author | Mason Wheeler |
Post date | 2013-11-11T17:38:19Z |
SVN 1892, the most recent commit.
Mason
On Monday, November 11, 2013 8:36 AM, IBO Support List <supportlist@...> wrote:
Mason,
What version of the IBO sources are you working
with?
In the past release, or perhaps just prior, I addressed issues in
this area and I'd like to know if you are before or after
that.
Thanks,
Jason
From: IBObjects@yahoogroups.com [mailto:IBObjects@yahoogroups.com] On Behalf Of masonwheeler@...
Sent: Sunday, November 10, 2013 9:48 AM
To: IBObjects@yahoogroups.com
Subject: [IBO] "Session is undefined" error when destroying a session
I created a connection using TIB_Connection.CreateForSession, and I've been using its DefaultTransaction property. I've verified that this gets set up with the proper IB_Session property.
When I free the session, it calls CleanupSessionChildren, which sets the IB_Session property to nil on various components, including the transaction. Then it calls inherited Destroy, which leads to the following stack trace, ending in an error when the transaction's session is found to be set to nil:
:76bec41f KERNELBASE.RaiseException + 0x58
IB_Components.TIB_Component.CheckSession(True)
IB_Components.TIB_SchemaCache.FreeResources
IB_Components.TIB_SchemaCache.Destroy
System.TObject.Free
IB_Components.TIB_Connection.Destroy
Classes.TComponent.DestroyComponents
Classes.TComponent.Destroy
IB_Session.TIB_SessionBase.Destroy
IB_Components.TIB_Session.Destroy
Mason