Article View: borland.public.cppbuilder.database.ado
Article #3382Re: TADODataSet and threads
From: Vassiliev V.V.
Date: Fri, 06 Sep 2002 06:41
Date: Fri, 06 Sep 2002 06:41
39 lines
2189 bytes
2189 bytes
ADO objects (Connection, Recordset) are COM objects. Regards, Viatcheslav V. Vassiliev http://www.oledbdirect.com The fastest way to work with MS SQL Server and MS Jet databases. "luca casotti" <lucacasotti@libero.it> �������/�������� � �������� ���������: news:3d779e8c@newsgroups.borland.com... > but these methods are notfor COM objects ? > > luca > > "Mark Guerrieri" <markg11@comcast.net> ha scritto nel messaggio > news:3d758846$1@newsgroups.borland.com... > > 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:
<3d78549a@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!newspump.sol.net!newshosting.com!news-xfer1.atl.newshosting.com!uunet!dca.uu.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<3d70c0fc@newsgroups.borland.com> <3d758846$1@newsgroups.borland.com> <3d779e8c@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 10698b,251df562247d2134 X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2002-09-06 01:41:05 PST From: "Vassiliev V.V." <news@vassilievvv.mtu-net.ru> Newsgroups: borland.public.cppbuilder.database.ado References: <3d70c0fc@newsgroups.borland.com> <3d758846$1@newsgroups.borland.com> <3d779e8c@newsgroups.borland.com> Subject: Re: TADODataSet and threads Date: Fri, 6 Sep 2002 10:41:23 +0400 Lines: 41 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: 62.118.135.228 Message-ID: <3d78549a@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1031296154 62.118.135.228 (6 Sep 2002 00:09:14 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newspump.sol.net!newshosting.com!news-xfer1.atl.newshosting.com!uunet!dca.uu.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail