🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: TADOConnection in Win32 Service

#3116
From: INCA Hellas Ltd
Date: Thu, 19 Dec 2002 09:03
27 lines
1535 bytes
You can also put the following line:

TInitOle ti(COINIT_MULTITHREADED);

before everything else in the Execute method of each thread and not bother
about CoInitialize and CoUninitialize.

"Sergey Muschin" <sergey.muschin@tonservices.com> wrote in message
news:3dffc112$1@newsgroups.borland.com...
> Oops!
>
> Forgot to say, that right now i'm using
>
>     CoInitializeEx(NULL,COINIT_MULTITHREADED);
>
> when service starts and
>
>       CoUninitialize();
>
> when it stops. Is it a right way to go?
>
> Regards,
> Sergey Muschin
>
>
>
>
Technical Details
Message-ID: <3e018b6e@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.online.be!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3dffbad1$1@newsgroups.borland.com> <3dffc112$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,edbe6bb6c97a37e2
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2002-12-19 01:09:14 PST
From: "INCA Hellas Ltd" <inca@incahellas.com>
Newsgroups: borland.public.cppbuilder.database.ado
References: <3dffbad1$1@newsgroups.borland.com> <3dffc112$1@newsgroups.borland.com>
Subject: Re: TADOConnection in Win32 Service
Date: Thu, 19 Dec 2002 11:03:38 +0200
Lines: 29
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 213.16.245.231
Message-ID: <3e018b6e@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1040288622 213.16.245.231 (19 Dec 2002 01:03:42 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.online.be!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail