Windows error 0x800401F0, -2147221008

Detailed Error Information

CO_E_NOTINITIALIZED[1]

MessageCoInitialize has not been called.
Declared inwinerror.h

HRESULT analysis[2]

FlagsSeverityFailure
Reserved (R)false
OriginMicrosoft
NTSTATUSfalse
Reserved (X)false
FacilityCode4 (0x004)
NameFACILITY_ITF[2][1]
DescriptionThe source of the error code is COM/OLE Interface management.[2][1]
Error Code496 (0x01f0)

Questions

3votes
1answer

WASAPI - trouble with CoCreateInstance method

I am trying to capture audio from the mic using the windows core audio APIs The relevant lines of code are const CLSID CLSID_MMDeviceEnumerator = __uuidof(MMDeviceEnumerator); const IID IID_IMMDeviceEnumerator = __uuidof(IMMDeviceEnumerator); IMMDeviceEnumerator *pEnumerator = NULL; hr = CoCreateInstance(CLSID_MMDeviceEnumerator,NULL,CLSCTX_ALL,IID_IMMDeviceEnumerator, (void**)&pEnumerator); hr returns the following value- > 0x800401f0 : CoInitialize has not [...] read more
audio
wasapi
3votes
1answer

How to install unmanaged shared side-by-side assembly

As a proof of concept I am trying to install dummy DLL as a shared side-by-side assembly. I have created a .dll vith embedded version info resource, created manifest and .cat file, and used sxs.dll functionality to InstallAssembly() but this function kept returning 0x800736FD (ERROR_SXS_UNTRANSLATABLE_HRESULT:An HRESULT could not be translated [...] read more
windows
side-by-side
2votes
1answer

IMFActivate::ActivateObject return error code "CoInitialize has not been called."

I'm writing a simple multimedia application in Visual Studio 2013 and I need to enumerate camera devices connected to my computer and create a media source object to link to one of them. I use Media Foundation SDK and tried to run the guide here: https://msdn.microsoft.com/en-us/library/windows/desktop/dd940326(v=vs.85).aspx : #include <Mfapi.h> #include [...] read more
c++
ms-media-foundation
2votes
1answer

MFC app Assert fail at CRecentFileList::Add on Command line FileOpen

I'm using VS2010 and Windows 7, and my app is SDI shared DLL, upgraded from VC6. After installing my application, if the user double-clicks the registered file type, the application crashes at the MFC function: void CRecentFileList::Add(LPCTSTR lpszPathName, LPCTSTR lpszAppID) { // ... #if (WINVER >= 0x0601) // ... #ifdef [...] read more
c++
visual-studio
visual-studio-2010
com
mfc
2votes
1answer

vss intializefor backup fails with return code E_UNEXPECTED

#include "vss.h" #include "vswriter.h" #include <VsBackup.h> #include <stdio.h> #define CHECK_PRINT(result) printf("%s\n",result==S_OK?"S_OK":"error") int main(int argc, char* argv[]) { BSTR xml; LPTSTR errorText; IVssBackupComponents *VssHandle; HRESULT result = CreateVssBackupComponents(&VssHandle); CHECK_PRINT(result); result = VssHandle->InitializeForBackup(); printf("unexpected%x\n",result); system("pause"); return 0; } in the above program intializeforbackup fails with error code E_UNEXPECTED. The VSS service is [...] read more
c++
windows
volume-shadow-service
1vote
1answer

Office 2003 Service Pack 3- Not able to install

I am trying to install Office 2003 SP3 on a windows 2003 EE server (used as a terminal server) which already have office 2003 SP2. I am getting an error that says "Update can not be applied". Below are the eventviewer entries for Application: 1. _ Event Type: Warning Event [...] read more
installation
sp3
microsoft-office-2003
1vote
2answers

Why does a DBI ODBC connection tell me CoInitialize has not been called?

I'm connecting to an Azure SQL box, and have not had issues with it for months. Today, I get this error: Error: nanodbc/nanodbc.cpp:983: FA004: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server][Failed to authenticate user '' in Active Directory (Auth option is 'Active Directory Integrated') Error code 0x800401F0; state 10 CoInitialize [...] read more
r
sql-server
azure
dbi
1vote
2answers

Read MS Word .doc file with ruby and win32ole

I'm trying to read .doc file with ruby, I use win32ole library. IT my code: require 'win32ole' class DocParser def initialize @content = '' end def read_file file_path begin word = WIN32OLE.connect( 'Word.Application' ) doc = word.activedocument rescue word = WIN32OLE.new( 'Word.Application' ) doc = word.documents.open( file_path ) end word.visible [...] read more
ruby-on-rails-4
doc
ruby-1.9.3
win32ole
1vote
0answers

CoInitialize required in MFC app on XP but not Vista/Win7?

I have written a SOAP Web Service that I'm trying to consume from an MFC application. The MFC application was not generated with ActiveX control support or Automation. When I run the MFC application from Vista or Win7, there's no problem accessing the Web Service. When I run the MFC [...] read more
web-services
windows-7
com
mfc
windows-xp
1vote
1answer

CoInitializeSecurity failed on disabling clr option

I have an application which is written in managed code and runs sucessfully, however now i disabled the /clr option from visual studio 2008 and made necessary changes to remove the manages code and convert it to native, and successfully compiled the code, however, the function CoInitializeSecurity() is failing with [...] read more
c++
com
clr
managed
0votes
0answers

RemoteApp and Desktop Connections Error 0x800401F0 when updating RemoteApp connections from RDS webfeed

I have set up Windows Server 2012 with Remote Desktop Services and RemoteApp aplications. Windows 7 clients are configured with web feed of RemoteApp aplications. Update is working when I manualy click "Update Now" in "RemoteApp and Desktop Connections" window, and new application icons are added. But automatic update always [...] read more
windows-server-2012
rds
remoteapp
0votes
3answers

Office 2003 Service Pack 3- Not able to install

I am trying to install Office 2003 SP3 on a windows 2003 EE server (used as a terminal server) which already have office 2003 SP2. I am getting an error that says "Update can not be applied". Below are the eventviewer entries for Application: Event Type: Warning Event Source: MsiInstaller [...] read more
windows-server-2003
microsoft-office
0votes
1answer

ODBC connection in R with Azure Active Directory Password authentication

I'm trying to connect to SQL server from R and I'm using the Azure Active Directory Password authentication. My connection in R define as follow : ch <- odbc::dbConnect(odbc(), DSN = "myDSN", Database = "dbname", Authentication="ActivedirectoryPassword", UID = uid, PWD = password ) This is failing by the following error [...] read more
r
sql-server
azure-active-directory
odbc
0votes
1answer

install visual studio on ubuntu 18.04

I am trying to install visual studio on my Ubuntu machine , I tried to to install it using WINE but without any success , because it is need Microsoft .net framework 4.0 , and I already installed version 4.7 . I removed 4.7 version and tried to install 4.0 [...] read more
.net
linux
visual-studio
ubuntu
installation
0votes
1answer

bcp Login failed using ActiveDirectoryPassword authentication

Followed the description mentioned in below link: https://docs.microsoft.com/en-us/sql/tools/bcp-utility?view=sql-server-ver15#G Goal - Using BCP utility, trying to login to SQL server using Azure Active Directory Username and Password. Used below command : bcp tableName out "C:\temp\tabledata.txt" -c -t -S xxxxxxx.database.windows.net -d AzureDB -G -U xxxxxx@xxxxx.com -P xxxxx Getting below error: SQLState = [...] read more
azure
azure-active-directory
bcp
0votes
1answer

CoCreateInstance in the MMDevice API returns error code 0x800401F0

As in the title, I am getting an error code that is not in the documentation of CoCreateInstance. The specific error code is 0x800401F0. Note: I am new to C++ and programming at this level in general. Trying to learn by building an audio visualization tool. #include <stdio.h> #include <Mmdeviceapi.h> [...] read more
c++
windows
winapi
audio
com
0votes
1answer

Coinitialize has not been called

I'm calling a COM DLL from a C# application. The DLL is an SDK for an application. When called from the application itself it works correctly, so I'm happy it's installed okay. I'm trying to call it from a C# console application though, and I'm getting the error below when [...] read more
c#
com
0votes
2answers

GUI Dialog on a separate thread

are there any objects when running wxWidget's common dialogs on a separate thread? I'm developing a browser plugin and so I need to put lengthy operations outside the main browser thread. I did a small test and it seems to work but a warning appears: ....\src\msw\dirdlg.cpp(333): 'CoCreateInstance(CLSID_FileOpenDialog)' failed with error [...] read more
wxwidgets

Comments

Leave a comment

(plain text only)

Sources

  1. winerror.h from Windows SDK 10.0.14393.0
  2. https://msdn.microsoft.com/en-us/library/cc231198.aspx

User contributions licensed under CC BY-SA 3.0