🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: thread

#103
From: Clayton Arends
Date: Fri, 24 Aug 2007 18:22
7 lines
1305 bytes
You need to call CoInitialize() in the thread's execute method and call 
CoUninitialize() at the end.  Also, keep in mind that TADOConnection is not 
thread-safe.  If at all possible you should create and destroy the ADO 
Connection in your thread's Execute method as well to avoid scenarios where 
multiple threads attempt to use the connection at the same time.

- Clayton 
Technical Details
Message-ID: <46cf21de$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!62.111.101.3.MISMATCH!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <46cf1c7d$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,5a158cdec4bd2893
X-Google-Attributes: gid10698b,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Clayton Arends" <nospam_claytonarends@hotmail.com>
Newsgroups: borland.public.cppbuilder.database.ado
References: <46cf1c7d$1@newsgroups.borland.com>
Subject: Re: thread
Date: Fri, 24 Aug 2007 11:22:39 -0700
Lines: 9
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: 71.93.4.10
Message-ID: <46cf21de$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1187979742 71.93.4.10 (24 Aug 2007 11:22:22 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!62.111.101.3.MISMATCH!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail