🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.pascal.delphi.databases
Article #62

connecting into a DLL, TeamB please

#62
From: Luc Bellego
Date: Tue, 23 Mar 1999 00:00
26 lines
1884 bytes
We have to put a TDatabase in a dll (to use as interface between
application). We are using Interbase, MSSql and Oracle.

After about 40 times to launch the dll we have an exception from
Windows (with a lot of numbers in) and we must restart the computer.
Did someone know a trick to put a TDatabase in a DLL ?

More stuff about the bug :
In a DLL we have only a TDatabase to create, in a Datamodule. The
application have a procedure to initiate the connection with the DLL,
this procedure do : 1) create the datamodule 2) open the database.
Before that the application do a LoadLibrary(our library). After doing
the call to the procedure we do a FreeLibrary in the application (the
debug in the dll shows that all the frees are correct). Now do the
same thing about 40 times and after the last you have the exception
!!!!!

Is a Delphi/BDE bug or a Windows'one ?

Thanks for the help,


Luc Bellego
lbellego@gbinaire.com
Gestion Binaire Inc.
Laval, Canada
Technical Details
Message-ID: <36f80b15.757958@wingate>
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: ffff5,f9585f8d54935be7,start
X-Google-Attributes: gidffff5,public
X-Google-Thread: 10de66,f9585f8d54935be7,start
X-Google-Attributes: gid10de66,public
X-Google-Thread: ff75c,f9585f8d54935be7,start
X-Google-Attributes: gidff75c,public
From: lbellego@dsuper.net (Luc Bellego)
Subject: connecting into a DLL, TeamB please
Date: 1999/03/23
Message-ID: <36f80b15.757958@wingate>
X-Deja-AN: 458125722
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: abuse@videotron.net
X-Trace: wagner.videotron.net 922225649 207.96.198.189 (Tue, 23 Mar 1999 16:47:29 EDT)
Organization: Gestion Binaire Inc.
MIME-Version: 1.0
NNTP-Posting-Date: Tue, 23 Mar 1999 16:47:29 EDT
Newsgroups: comp.lang.pascal.delphi.databases,borland.public.delphi.database.sqlservers,borland.public.delphi.database.desktop