Subject Re: [IBO] AVs in gds32.dll
Author delphi5
It gets destroyed when the object holding the session in the FSession field
is destroyed (in the object's Destroy destructor).

The id variable is assigned like this (iSessCount is a global variable):
interlockedincrement(iSessCount);
id := iSessCount;

Gyula

----- Original Message -----
From: "Helen Borrie" <helebor@...>
> > FSession := TIB_Session.Create(nil); <---------------------
>
> How is this session getting destroyed?
>
> Another question - is [id] completely unique at the time the session and
database are created?