Article View: borland.public.cppbuilder.database.ado
Article #535Re: EOleSysError 'CoInitialize is not called", please help
From: Mark Guerrieri
Date: Thu, 03 Nov 2005 22:16
Date: Thu, 03 Nov 2005 22:16
21 lines
1621 bytes
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
Technical Details
Message-ID:
<436a8c2f@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<436932b7@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,10c0e048a2fc087f X-Google-Attributes: gid10698b,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Mark Guerrieri" <mguerrieri@nospam_cmsgrp.com> Newsgroups: borland.public.cppbuilder.database.ado References: <436932b7@newsgroups.borland.com> Subject: Re: EOleSysError 'CoInitialize is not called", please help Date: Thu, 3 Nov 2005 17:16:34 -0500 Lines: 23 Organization: Creative Marketing Strategies X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 209.50.174.82 Message-ID: <436a8c2f@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1131056175 209.50.174.82 (3 Nov 2005 14:16:15 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail