🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

TDatabase shared in DLLs

#1382
From: Clayton M. Arends
Date: Sat, 06 Nov 1999 00:00
20 lines
1366 bytes
Hello,

I have an application that has a few implicit DLLs and any number of
dynamically loaded DLLs.  One of the implicit DLLs (we'll call it DB.DLL)
takes care of my database connection.  The dynamically loaded DLL is called
after the database connection has been opened.  It also uses the DB.DLL.
When it attempts to call upon any methods in DB.DLL the database tries to
log in again.  Once logged in that DLL won't have to log in again.

I have KeepConnection set to true.  A show message reveals that the database
handles are the same in the main application and in the dynamic DLL.

My question is, how can I share the DLL database connection between DLLs and
my main application without having to log in again?  I also don't want to
have to manage multiple database connections.  I just want the one
connection.

Thanks,

Clayton
Technical Details
Message-ID: <801s1k$j688@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fcd2b,b1244f56f55e7a5,start
X-Google-Attributes: gidfcd2b,public
From: "Clayton M. Arends" <carends@evisions.com>
Subject: TDatabase shared in DLLs
Date: 1999/11/06
Message-ID: <801s1k$j688@forums.borland.com>
X-Deja-AN: 545274558
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Organization: Another Netscape Collabra Server User
X-MSMail-Priority: Normal
Newsgroups: borland.public.cppbuilder.database.multi-tier