🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: CoInitialize has not been called

#276
From: Vassiliev V. V.
Date: Fri, 23 Mar 2007 18:04
32 lines
1877 bytes
CoInitialize() should be automatically called in main thread. In other 
threads you should call:

CoInitialize(NULL);
try
{
 ...
}
__finally
{
  CoUninitialize();
}

//------------------------------------------
Regards,
Vassiliev V. V.
http://www.managed-vcl.com - using .Net objects in Delphi for Win32 +
ADO.Net
http://www.oledbdirect.com - The fastest way to access MS SQL Server,
MS Jet (Access) and Interbase (through OLEDB)


"Sel�uk Arit" <selcuk_arit@yahoo.com> �������/�������� � �������� ���������: 
news:4603f8a5$1@newsgroups.borland.com...
>
> Hi.
> Whenever I open a form containing an ADO component
> I get this  error.  If I use  InfoPower library  there is no
> error.
>
> I use  BCB 5 Enterprise.  Trying to use BDS 2006 but same error
> happens. 
Technical Details
Message-ID: <460416ec@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4603f8a5$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,d49408aacebdceee
X-Google-Attributes: gid10698b,public
X-Google-Language: ENGLISH,ASCII
From: "Vassiliev V. V." <support@oledbdirect.com>
Newsgroups: borland.public.cppbuilder.database.ado
References: <4603f8a5$1@newsgroups.borland.com>
Subject: Re: CoInitialize has not been called
Date: Fri, 23 Mar 2007 21:04:06 +0300
Lines: 34
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3028
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028
X-RFC2646: Format=Flowed; Original
X-Antivirus: avast! (VPS 000727-0, 22.03.2007), Outbound message
X-Antivirus-Status: Clean
NNTP-Posting-Host: 85.93.138.132
Message-ID: <460416ec@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1174673132 85.93.138.132 (23 Mar 2007 11:05:32 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail