Subject Re: [IBO] IBO inside a dll
Author Helen Borrie
At 09:27 AM 07-01-02 +0100, you wrote:

>So, one TIB_Session _per_ TIB_Connection? And then the session
>component has to be destroyed when the connection is destroyed?
>

Martijn,
Actually, it's one TIB_Session per module. So if you have a module (e.g. application) that has two or more connections, you still have just one session component. But a DLL is a separate module so it needs its own session component...same if you have a modulized application architecture like we used to do in Delphi 1, one session per module...

The IB_Session needs to be the first thing created in your module, too; and it will be the last thing destroyed when the library object destroys stuff.

cheers,
Helen


All for Open and Open for All
Firebird Open SQL Database ยท http://firebirdsql.org
_______________________________________________________