🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: TDatabase shared in DLLs

#1387
From: Jeff Overcash (TeamB)
Date: Mon, 08 Nov 1999 00:00
32 lines
1803 bytes

"Mark Cashman (TeamB BCB)" wrote:
> 
> 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).
> 

Just to verify, yes with pacakges the Application is shared.  Beyond that all
the VCL global objects, like Session, Screens, Application etc are shared. 
Packages get mapped into the exe's address space, Dll's don't and there is a
'barrier' between your app and the Dll in terms of global VCL objects.  For VCL
objects using packages instead of Dlls will often solve a lot of synchronizing
problems with these global VCL objects.

> Good luck!
> 
> ----
> 

-- 
Jeff Overcash (TeamB) 
      (Please do not email me directly unless  asked. Thank You) 
Anyone who cannot cope with mathematics is not fully human.
At best he is a tolerable subhuman who has learned to wear 
shoes, bathe and not make messes in the house.   (Heinlein)
Technical Details
Message-ID: <38272C94.EB33CFAB@onramp.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <801s1k$j688@forums.borland.com> <38270BCD.1A5999D8@ix.netcom.com> <38271BF5.BB1544AF@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: "Jeff Overcash (TeamB)" <overcash@onramp.net>
Subject: Re: TDatabase shared in DLLs
Date: 1999/11/08
Message-ID: <38272C94.EB33CFAB@onramp.net>
X-Deja-AN: 546037313
Content-Transfer-Encoding: 7bit
References: <801s1k$j688@forums.borland.com> <38270BCD.1A5999D8@ix.netcom.com> <38271BF5.BB1544AF@ix.netcom.com>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Organization: TeamB
Mime-Version: 1.0
Newsgroups: borland.public.cppbuilder.database.multi-tier