🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Problem: using ADOConnection in a thread

#4658
From: Dariusz Michalek
Date: Thu, 25 Oct 2001 08:56
15 lines
1539 bytes
>     I have added that line but it still failed to connect to server.
>     And I found it would succeed if I used synchronize function in the
> thread. It must be not thread-safe for using the TADOConnection in a thread.


It is but you have to use separate TADOConnection component in each 
thread. I've missed the fact that you have placed your Connection on the 
form. Create it within thread and everything should work fine.

-- 
Dariusz Michalek
D.Michalek@bsb.com.pl


 
Technical Details
Message-ID: <3BD7D3D8.306@bsb.com.pl>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!isdnet!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!dnews
References: <3bd63b2e_1@dnews> <3BD6C181.8090105@bsb.com.pl> <3bd76932_2@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,8497a58d37414a68
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2001-10-25 02:08:42 PST
Message-ID: <3BD7D3D8.306@bsb.com.pl>
Date: Thu, 25 Oct 2001 10:56:56 +0200
From: Dariusz Michalek <D.Michalek@bsb.com.pl>
Organization: Bazy i Systemy Bankowe Sp. z o.o.
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.2) Gecko/20010726 Netscape6/6.1
X-Accept-Language: pl,en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.database.ado
Subject: Re: Problem: using ADOConnection in a thread
References: <3bd63b2e_1@dnews> <3BD6C181.8090105@bsb.com.pl> <3bd76932_2@dnews>
Content-Type: text/plain; charset=ISO-8859-2; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 195.117.33.15
X-Trace: dnews 1004000670 195.117.33.15 (25 Oct 2001 02:04:30 -0700)
Lines: 17
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!isdnet!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!dnews