Subject Re: [IBO] Sharing IB connection between DLL's
Author Jason Wharton
This is possible. You need each DLL to have a TIB_Connection component and
then you pass to it the dbHandle to it's dbHandleShared property so that
each connection component can interact with the same connection handle.

Don't mix together component references across DLL boundaries though. This
is known to cause memory problems even when using ShareMem.

Regards,
Jason Wharton
CPS - Mesa AZ
http://www.ibobjects.com


----- Original Message -----
From: "zeroptr" <burak.ozler@...>
To: <IBObjects@yahoogroups.com>
Sent: Thursday, May 16, 2002 11:37 PM
Subject: [IBO] Sharing IB connection between DLL's


Hi all

I'm building a Financial application so I have to separate the
modules to DLL's but, I don't want that all dll's use their own
connection. I make a connection on my main project and I want all
DLL's share the same connection.

Ýs this possible and how??


Thanks
Burak



___________________________________________________________________________
IB Objects - direct, complete, custom connectivity to Firebird or InterBase
without the need for BDE, ODBC or any other layer.
___________________________________________________________________________
http://www.ibobjects.com - your IBO community resource for Tech Info papers,
keyword-searchable FAQ, community code contributions and more !

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/