 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Selзuk Arit Guest
|
Posted: Fri Mar 23, 2007 9:56 pm Post subject: CoInitialize has not been called |
|
|
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
|
Posted: Fri Mar 23, 2007 11:04 pm Post subject: Re: CoInitialize has not been called |
|
|
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 |
|
 |
|
|
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
|
|