🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: TADODataSet and threads

#3374
From: Mark Guerrieri
Date: Wed, 04 Sep 2002 04:12
18 lines
1511 bytes
Call CoInitialize(NULL)/CoUninitialize() in the Execute method of the second
thread (assuming it is a TThread decendant)...

Mark Guerrieri

"luca casotti" <lucacasotti@libero.it> wrote in message
news:3d70c0fc@newsgroups.borland.com...
> I'm using a TADODataSet object in  the main thread. If I use this object
> from a second thread, when both the threads use the object at the same
time
> (I suppose) the program cause an error and exits.
> How can I avoid this problem?
>
> thanks
>
> luca
>
>
Technical Details
Message-ID: <3d758846$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!feedme.news.mediaways.net!fr.usenet-edu.net!usenet-edu.net!news.stealth.net!news.stealth.net!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <3d70c0fc@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,251df562247d2134
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2002-09-03 21:30:17 PST
From: "Mark Guerrieri" <markg11@comcast.net>
Newsgroups: borland.public.cppbuilder.database.ado
References: <3d70c0fc@newsgroups.borland.com>
Subject: Re: TADODataSet and threads
Date: Wed, 4 Sep 2002 00:12:56 -0400
Lines: 20
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 68.44.67.205
Message-ID: <3d758846$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1031112774 68.44.67.205 (3 Sep 2002 21:12:54 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!feedme.news.mediaways.net!fr.usenet-edu.net!usenet-edu.net!news.stealth.net!news.stealth.net!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail