🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.multi-tier
Article #1386

Re: TDatabase shared in DLLs

#1386
From: Mark Cashman (TeamB BCB)
Date: Mon, 08 Nov 1999 00:00
51 lines
2119 bytes
Hi, Clayton!

Each .exe definitely gets its own session (the default TSession
"Session"). Each thread must have a separate session. Since a DLL gets
its own application and the Session is Application based, I suspect this
means the same for the DLL. The exception, I believe is packages, where
all packages share the application object of the using application (I
think).

Good luck!

----


Clayton wrote:

I haven't tried using a session other than the default session yet.
Does
each EXE and DLL gets its own default session object then?

Yes, I plan on the DLL doing all the management.  I have several classes
and
objects that will return the items I need in TList's or TStringList's or

just plain record objects.

The dynamically loaded DLL has already been given the main executable's
TApplication object and is using it.  Does an implicitly loaded DLL have
a
different TApplication object?  (I guess I could write a little test to
see
if that's the case).

So I'll try setting all application objects the same and then create my
own
session object for the database DLL.

Thanks for the direction,

Clayton


--
------
Mark Cashman (TeamB - C++ Builder), creator of The Temporal Doorway at
http://www.temporaldoorway.com
- Original digital art, writing, music and more -
C++ Builder / JBuilder Tips and The C++ Builder Programmer's Webring
(Join us!)
http://www.temporaldoorway.com/programming/index.htm
------
Technical Details
Message-ID: <38271BF5.BB1544AF@ix.netcom.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <801s1k$j688@forums.borland.com> <38270BCD.1A5999D8@ix.netcom.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fcd2b,b1244f56f55e7a5
X-Google-Attributes: gidfcd2b,public
From: "Mark Cashman (TeamB BCB)" <mcashman@ix.netcom.com>
Subject: Re: TDatabase shared in DLLs
Date: 1999/11/08
Message-ID: <38271BF5.BB1544AF@ix.netcom.com>
X-Deja-AN: 546008755
Content-Transfer-Encoding: 7bit
References: <801s1k$j688@forums.borland.com> <38270BCD.1A5999D8@ix.netcom.com>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Reply-To: mcashman@ix.netcom.com
Newsgroups: borland.public.cppbuilder.database.multi-tier