🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Synchronising ADOConnections

#3947
From: Arnie Mauer
Date: Fri, 24 May 2002 13:28
31 lines
2088 bytes
Thomas,

Don't know of any magic parameters.  You might want to put the delete in a
transaction and commit it when done.  Also, use thread synchronization via
semaphores or critical sections.

- Arnie

"Thomas Wagener" <Thomas.Wagener@web.de> wrote in message
news:3cedf0d8$1_1@dnews...
> Hi,
>
> I have a problem concerning the sychronisation of ADOConnections in
> different threads. When I call a delete statement (via a TADOCommand) on a
> table, a query in a different thread is still giving back the deleted
record
> set. The application works on a user database. When I delete a user in one
> thread the username is still displayed in the other, although I obtain the
> user list definitely after the first command was executed.
> Each thread holds a TADOConnection that is only closed but not destroyed
> between the queries on the database. I suspect that the caches of the
> connections are not updated properly. Is there a magic parameter for
> TADOConnection that might remedy this problem, do I have to destroy the
> connection after each query, or am I completely on the wrong track? I am
> using CBuilder 5.
>
> Any suggestions,
>
> Thomas
>
>
Technical Details
Message-ID: <3cee3ffa$2_2@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!supernews.com!iad-peer.news.verio.net!news.verio.net!news.stealth.net!news.stealth.net!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews
References: <3cedf0d8$1_1@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,588b209f7c6a4a7e
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2002-05-24 06:30:52 PST
From: "Arnie Mauer" <amauer@vrms.com>
Newsgroups: borland.public.cppbuilder.database.ado
References: <3cedf0d8$1_1@dnews>
Subject: Re: Synchronising ADOConnections
Date: Fri, 24 May 2002 09:28:29 -0400
Lines: 33
Organization: VRMS
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
NNTP-Posting-Host: 24.151.50.11
Message-ID: <3cee3ffa$2_2@dnews>
X-Trace: dnews 1022246906 24.151.50.11 (24 May 2002 06:28:26 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!supernews.com!iad-peer.news.verio.net!news.verio.net!news.stealth.net!news.stealth.net!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews