🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: New problem with ADO & Access

#2110
From: Ted Byers
Date: Thu, 06 Nov 2003 17:42
23 lines
1687 bytes
Hi Vladimir,

What about my guess is this function:

    void Disconnect(void) {
      if (connected) {
        connection.Exec(Function("Close"));
        // is the following necesary - I doubt it (because
        // of the bad effect of connecting to a DB with
        // both the catalog and connection objects)
        // but I want to be sure
        catalog.Exec(Function("Close"));
        connected = false;
      }
    };

Is it right or wrong to call close on catalog if it has already been called
on connection?


Cheers,

Ted
Technical Details
Message-ID: <3faa88cd$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!newsgroups.borland.com!not-for-mail
References: <3fa6811e$1@newsgroups.borland.com> <3fa77c01$1@newsgroups.borland.com> <3fa7ac8a$3@newsgroups.borland.com> <3fa7ea09$1@newsgroups.borland.com> <3fa7fe9b$1@newsgroups.borland.com> <3fa8e7b7$1@newsgroups.borland.com> <3fa960f8$1@newsgroups.borland.com> <3faa750f$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,f2b48c4b0b8a3004
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2003-11-06 10:04:04 PST
From: "Ted Byers" <r.ted.byers@sympatico.ca>
Newsgroups: borland.public.cppbuilder.database.ado
References:  <3fa6811e$1@newsgroups.borland.com> <3fa77c01$1@newsgroups.borland.com> <3fa7ac8a$3@newsgroups.borland.com> <3fa7ea09$1@newsgroups.borland.com> <3fa7fe9b$1@newsgroups.borland.com> <3fa8e7b7$1@newsgroups.borland.com> <3fa960f8$1@newsgroups.borland.com> <3faa750f$1@newsgroups.borland.com>
Subject: Re: New problem with ADO & Access
Date: Thu, 6 Nov 2003 12:42:26 -0500
Lines: 26
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 65.95.127.243
Message-ID: <3faa88cd$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1068140749 65.95.127.243 (6 Nov 2003 09:45:49 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!newsgroups.borland.com!not-for-mail