🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #3453

TADO Objects and DLL's

#3453
From: Keith Willis
Date: Fri, 30 Aug 2002 02:03
20 lines
1881 bytes
Dear All,

I have recently tried to pass pointers to a TADOConnection and TADOQuery
into a "C" linkage exported function in a DLL.  When I attempt to access any
of the TADO object properties within the DLL, it seems to work fine until I
close down my calling app which then crashes on exit.

Because of this I attempted a different approach passing only the Connection
String to the DLL as a null-terminated string with local copies of the
TADOConnection and TADOQuery objects in the DLL, (actually dropped on a
dialog box form contained in the DLL).  This was even worse As soon as I
attempted to connect to the Microsoft SQL Server 2000 database using the
TADOConnection object in the DLL I got an exception ("CoInitialise not
loaded") or something like that.

At this point, I've given up.  Is there some fundamental problem with using
TADO objects in DLL's?

Cheers,
Keith.
Technical Details
Message-ID: <3d6ed2f2$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-04!supernews.com!news.maxwell.syr.edu!newsfeed.online.be!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,bf3cac4e40531b0,start
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2002-08-29 19:14:52 PST
Reply-To: "Keith Willis" <nnetsoft@bigpond.net.au>
From: "Keith Willis" <nnetsoft@bigpond.net.au>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: TADO Objects and DLL's
Date: Fri, 30 Aug 2002 12:03:33 +1000
Lines: 24
Organization: NetSoft Distributed Solutions
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 203.51.42.82
Message-ID: <3d6ed2f2$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1030673138 203.51.42.82 (29 Aug 2002 19:05:38 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-04!supernews.com!news.maxwell.syr.edu!newsfeed.online.be!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail