🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #11767

Re: CoInitializeEx

#11767
From: Remy Lebeau (TeamB)
Date: Sun, 25 Jan 2004 07:37
18 lines
1583 bytes
"nicolasr" <nicolasrNOSPAMATSIGNgmx.net> wrote in message
news:4012ffb1$1@newsgroups.borland.com...

> When I use a simple test project, drag the component
> on the blank form and run it I get this error:
> RPC_E_CHANGED_MODE
> with message string
> "Cannot change thread mode after it is set"

That means that something else already called CoInitialize() or
CoInitializeEx() for that calling thread before you then tried to call it
yourself.  A thread can only initialize the COM library once at a time to
set up its apartment relationship with other threads.  Once initialized, a
thread cannot change its apartment unless CoUnitialize() is called first.


Gambit
Technical Details
Message-ID: <401370c4$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!nntp.abs.net!ash.uu.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <4012ffb1$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,415206d9c16e00b1
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-01-24 23:37:13 PST
From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <4012ffb1$1@newsgroups.borland.com>
Subject: Re: CoInitializeEx
Date: Sat, 24 Jan 2004 23:37:59 -0800
Lines: 20
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: 67.22.138.253
Message-ID: <401370c4$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1075015876 67.22.138.253 (24 Jan 2004 23:31:16 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!nntp.abs.net!ash.uu.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail