🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.database.ado
2 messages
2 total messages Started by Sel�uk Arit Fri, 23 Mar 2007 16:56
CoInitialize has not been called
#275
Author: Sel�uk Arit
Date: Fri, 23 Mar 2007 16:56
8 lines
1018 bytes
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.
Re: CoInitialize has not been called
#276
Author: 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. 
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads