BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CoInitialize has not been called

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder Databases (ADO)
View previous topic :: View next topic  
Author Message
Selзuk Arit
Guest





PostPosted: Fri Mar 23, 2007 9:56 pm    Post subject: CoInitialize has not been called Reply with quote



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.
Back to top
Vassiliev V. V.
Guest





PostPosted: Fri Mar 23, 2007 11:04 pm    Post subject: Re: CoInitialize has not been called Reply with quote



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 (AT) yahoo (DOT) com> сообщил/сообщила в новостях следующее:
news:4603f8a5$1 (AT) newsgroups (DOT) borland.com...
Quote:

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.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder Databases (ADO) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.