🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: ADO Connection is busy

#1077
From: Lothar
Date: Tue, 16 Nov 2004 15:16
21 lines
1833 bytes
Hi, I had the same problem. My solution was to have 2 connections.
1 for the threads, and 1 for the main program.
For the threads I use CriticalSections so that they don't use the 
connection at the same time.

Does that help?
Don't hesitate to ask for more details.
Lothar

OKusmen schrieb:

>I have a service application. This service uses a ADOConnection. Also, this
>service has some thread. These threads uses this ADOConnection. When I read
>ADO documentation in help, this explains ADO as thread-safe, but I sometimes
>get error like "ADO connection is busy". I think that ADO cannot wait
>threads. How can solve this problem?
>Thanks for help.
>
>
>  
>
Technical Details
Message-ID: <419a19d9@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news-hub.cableinet.net!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <417f2e06@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,3316aae3ec2634c5
X-Google-Attributes: gid10698b,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Tue, 16 Nov 2004 16:16:11 +0100
From: Lothar <Lothar.Huppertz@gmx.de>
User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; de-DE; rv:1.4) Gecko/20030619 Netscape/7.1 (ax)
X-Accept-Language: de-DE, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.database.ado
Subject: Re: ADO Connection is busy
References: <417f2e06@newsgroups.borland.com>
In-Reply-To: <417f2e06@newsgroups.borland.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 80.133.153.137
Message-ID: <419a19d9@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1100618201 80.133.153.137 (16 Nov 2004 07:16:41 -0700)
Lines: 22
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news-hub.cableinet.net!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail