Subject | Re: [IBO] Threaded quiries |
---|---|
Author | Jason Wharton |
Post date | 2003-06-14T08:30:33Z |
> thanx for the helpIf the session owns the other components then you only need to free the
> I'm still getting the locks though - so could you please verify that this
> code is correct?
> thanx
> ================
> on Create
> FSession := TIB_Session.Create(nil);
> FConnection := TIB_Database.Create(FSession);
> FTransaction := FConnection.DefaultTransaction;
>
> and on Destroy
> FConnection.Disconnect;
> FSession.Free;
> FConnection.Free;
> ================
> Louis
owner (session) otherwise, you should free the connection prior to freeing
the session. As it seems, your code is invoking the operation to free an
object with an invalid pointer.
Jason Wharton