🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Closing an ADOX Catalog

#1170
From: Robert Emmons
Date: Sat, 16 Oct 2004 20:39
22 lines
1829 bytes
On Sat, 2 Oct 2004 11:17:07 +0400, "Viatcheslav V. Vassiliev"
<support@oledbdirect.com> wrote:
>For me your code works (BCB6). I sent you project that works.

Thanks for your help and the code you sent.

You are correct.  The code I sent did work, but it was not the entire
code from my project.  A line of code that created an ADOX Tables
collection object was apparently preventing the connection from
closing.  I had to explicitly Release() this object, or the connection
would not close.  Here is all the relavent code for anyone who
searches in the future:


Adox_tlb::TCOM_Catalog cat = CoCatalog::Create();
Variant linkDbPathConnectStr =
        WideString("Provider=Microsoft.Jet.OLEDB.4.0;Data 
                Source=test.mdb");
cat->set_ActiveConnection(linkDbPathConnectStr);
Adox_tlb::Tables* Tbls = cat->get_Tables();
Tbls->Release();
cat.Release();
Technical Details
Message-ID: <3913n01nt8l218tm0129n28kluhm3eiik2@4ax.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4voql0l82udr0ue7h46qpu77a9nkjs2jfn@4ax.com> <415e55f2$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,55c11d2c62688f7e
X-Google-Attributes: gid10698b,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Robert Emmons <remmons@aurigen.com>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: Re: Closing an ADOX Catalog
Date: Sat, 16 Oct 2004 16:39:06 -0400
Message-ID: <3913n01nt8l218tm0129n28kluhm3eiik2@4ax.com>
References: <4voql0l82udr0ue7h46qpu77a9nkjs2jfn@4ax.com> <415e55f2$1@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 68.193.14.50
X-Trace: newsgroups.borland.com 1097958968 68.193.14.50 (16 Oct 2004 13:36:08 -0700)
Lines: 23
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail