Windows error 0x80040201, -2147220991

Detailed Error Information

MPEG2_E_ALREADY_INITIALIZED[1]

Declared inMpeg2Error.h

EVENT_E_ALL_SUBSCRIBERS_FAILED[2]

MessageAn event was unable to invoke any of the subscribers
Declared inwinerror.h

HRESULT analysis[3]

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

Questions

11votes
3answers

COMException when I use a Popup in WPF

I have a very annoying exception which freeze my application thrown by WPF, when the content of this popup seems to have to much element. In the output windows I see approximatively 50 times this exception. > 'System.Runtime.InteropServices.COMException' occurred in > UIAutomationProvider.dll Then sometimes after the freeze I have this [...] read more
.net
wpf
popup
9votes
5answers

How to prevent re-entrancy of WPF event handler during ActiveX method call?

We're calling methods on an ActiveX component from within a WPF and STA application. This calling is late-bound performed via: res = ocx.GetType().InvokeMember(methodName, flags, null, ocx, args); ...where ocx is the ActiveX object retrieved with the System.Windows.Forms.AxHost.GetOcx() method. This call is performed from within a WPF event handler, say 'mouse [...] read more
c#
.net
wpf
com
activex
6votes
1answer

INetSharingConfiguration->EnableSharing( ICSSHARINGTYPE_PUBLIC ) returns 0x80040201

I am trying to programmatically enable sharing with the sharing type public on a device that matches a known GUID on a windows 7 machine. API at: http://msdn.microsoft.com/en-us/library/windows/desktop/aa365944(v=vs.85).aspx The list of errors show the following: E_ABORT, E_FAIL, E_INVALIDARG, E_NOINTERFACE, E_NOTIMPL, E_OUTOFMEMORY, E_POINTER, and E_UNEXPECTED. The error code I am getting [...] read more
c++
windows-7
sharing
4votes
1answer

Unable to register VB ocx components (err 0x80040201)

I have a problem trying to register some ocx files. When I execute regsvr32, it returns 0x80040201 error code. I'm using win xp SP3 and my user has administrator permissions. When I try to register them with another user on the same machine I can do it without a problem, [...] read more
vb6
windows-xp
ocx
4votes
2answers

Fail to attach windows service with Skype4COM to Skype Client

I tried to create a windows service which will allow to interact with Skype Client. I'm using SKYPE4COM.DLL lib. When I create a simple console or win32 aplication all works ok (I have the Skype request for this application and it works well). But when I try to run this [...] read more
windows
api
service
skype
skype4com
3votes
0answers

ComboBox takes way too long to open (COMException Error)

Here is the situation of my problem: I have a ListBox with two items of type MyClass. MyClass has a List<Column> collection. Somewhere else in the same window I have a ComboBox with the columns of the selected MyClass.ColumnCollection as ItemsSource. Here is where the trouble starts: The first time [...] read more
c#
combobox
contextswitchdeadlock
3votes
1answer

Com server build using Python on 64-bit Windows 7 machine

> Original post is here: > http://mail.python.org/pipermail/python-win32/2010-December/011011.html > > I am using: > > * OS: 64 bit Windows 7 Professional > * Python: python-2.7.1.amd64 > * Python win32 extensions: pywin32-214.win-amd64-py2.7 > * Py2exe: py2exe-0.6.9.win64-py2.7.amd64 I am trying to build icon overlay for Windows. It has worked fine on 32 [...] read more
python
64-bit
py2exe
pywin32
1vote
1answer

Python 64 bit DLL COM Server Registration Problem on 64 bit Windows 7

I am trying to create a simple COM server using Python 2.7 on 64 bit Windows 7, but I can't get the DLL registered successfully. I am able to do this successfully using Python 2.6 on 32 bit Windows XP. I am also able to register my class directly from [...] read more
python
com
py2exe
pywin32
dllregistration
0votes
1answer

How to resolve DllRegisterServer error when registering an OCX component?

I have to fix a computer running Windows XP SP3, which has accumulated a fair amount of company-specific software, meaning that OS reinstall is not really an option. The thing is, I need to install a package named MetaWeb. When I run the installer, it goes on until the "Registering [...] read more
windows-xp
regsvr32
0votes
0answers

How to get the HRESULT of an ApplicationException thrown from a managed library which is called in native c++ using reflection?

Using the code sample here: Calling A .NET Managed Method from Native Code With only the following change: Throw ApplicationException derived exception in Test method public class TestException : ApplicationException { public TestException(string message) : base(message) { this.HResult = unchecked((int)0x80040201); } } public class Class1 { public void Test() { [...] read more
c#
visual-c++
reflection
interop
0votes
1answer

Implementation of IValueProvider leads to UITestControlNotAvailableException

I'm struggling a bit with UI Automation for an WindowsStore app. I get an UITestControlNotAvailableException as soon as I implement IValueProvider. If I remove the implementation it works. * Microsoft.VisualStudio.TestTools.UITest.Extension.UITestControlNotAvailableException (The control is not available or not valid.) * InnerException: Points to a call to testControl.Name (Microsoft.VisualStudio.TestTools.UITesting.UITestControl.get_Name()) * InnerException: An [...] read more
xamarin
windows-store-apps
ui-automation
visualstudio.testtools
0votes
0answers

Windows Script Host JScript Scripting Engine Difficulty

I am attempting to run a JScript script using Windows Script Host 5.8 on a 32-bit Windows 7 PC. This script is part of a larger build effort for an open source software project, where an ActiveXObject is being created as part of the script. This has failed to run, [...] read more
windows
jscript
wsh
0votes
1answer

Using Py2exe's ctypes_com_server setup keyword with Python 3

I'm making an extension for a Windows program that hooks to COM server objects. I want to use Python to do this, and from what I understand, I can use Py2exe to create a DLL from a comtypes server. For a test, I wrote a simple class that calls a [...] read more
python
windows
com
py2exe
comtypes
0votes
1answer

Error using ole automation to send CDO Email in SQL Server 2000

I am tearing my hair out on this one. Recently (about a month or so ago) some stored procedures we have on our SQL 2000 server stopped sending emails. We have several versions of the same stored proc in different databases which all broke at the same time (I understand [...] read more
sql-server
sql-server-2000
ole
cdo.message

Comments

Leave a comment

(plain text only)

Sources

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

User contributions licensed under CC BY-SA 3.0