🚀 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 YangKai Liu Wed, 02 Nov 2005 21:46
EOleSysError 'CoInitialize is not called", please help
#631
Author: YangKai Liu
Date: Wed, 02 Nov 2005 21:46
13 lines
1367 bytes
Hi,

I call a standard DLL in my program.  The DLL uses ADO and my program 
uses ADO too.  I use data module to use ADO.  I am sure that the DLL 
calls CoInitialize.

When I try to run my program, I get the message "EOleSysError 
'CoInitialize is not called" and the program stops at the constructor of 
my data module.

Where should I put the CoInitialze?

Thanks
Re: EOleSysError 'CoInitialize is not called", please help
#535
Author: Mark Guerrieri
Date: Thu, 03 Nov 2005 22:16
21 lines
1621 bytes
If your program uses ADO from a different thread other than the Main VCL
thread, then that thread must call CoInitialize prior to making any ADO
calls.

Mark

"YangKai Liu" <yangkai.liu@decision-analytics.com> wrote in message
news:436932b7@newsgroups.borland.com...
> Hi,
>
> I call a standard DLL in my program.  The DLL uses ADO and my program
> uses ADO too.  I use data module to use ADO.  I am sure that the DLL
> calls CoInitialize.
>
> When I try to run my program, I get the message "EOleSysError
> 'CoInitialize is not called" and the program stops at the constructor of
> my data module.
>
> Where should I put the CoInitialze?
>
> Thanks
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