Windows error 0x80040202, -2147220990

Detailed Error Information

MPEG2_E_OUT_OF_BOUNDS[1]

Declared inMpeg2Error.h

HRESULT analysis[2]

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

Questions

6votes
2answers

COMException in C# when hooking into event

I am receiving a COM Exception when trying to hook into an event on a COM Object. Here is the code I am trying to execute. COMClass a = IComClass as ComClass; a.SomeEvent += new SomeEvent_EventHandler(MethodNameHere); Line two throws an exception of type COMException with the following information: System.Runtime.InteropServices.COMException was [...] read more
c#
.net
events
com
interop
4votes
3answers

OPC server access remotely using OPCDA.NET tools

I am developing OPC Client in windows C#. I have developed the code and reading OPC Items on Sampling as well as event based (OnDataChange). When I am working with local machine then my code works fine with both Sampling as well as OnDataChange, but when I am trying to [...] read more
c#
.net
opc
2votes
1answer

Remote OPC Connected but can't read

I am writing a custom OPC Client application in C#, enabling reading of data from a RSLinx Server. First of, I wasn't able to connect to the RSLINX Opc Server remotely. Exception Access Denied kept occurring. I then alteredthe DCOM Settings of MyComputer -> Com Security -> Access Permissions and [...] read more
c#
dcom
plc
opc
2votes
1answer

Error Connecting to Third Party App via COM: mscorlib Exception from HRESULT: 0x80040202

One particular user is getting an exception when connecting an application I created to a third party app using COM. The connection fails with the following error: Source: mscorlib Message: Exception from HRESULT: 0x80040202 This software works fine for other users. Any ideas what could be going on? The error [...] read more
c#
.net
com
1vote
1answer

C# Running Active Automation Object - How to Source events?

I have a (long running) console application, written in C#, which I want to be able to manipulate through COM (so no InProc DLLs and regasm.exe). IDispatch is all I need - so a classic OLE Automation object. Here I'll present a minimal version of what I try to do. [...] read more
c#
com
ole-automation
active-objects
running-object-table
1vote
2answers

'System.Runtime.InteropServices.COMException' in Interop.ZKFPEngXControl.dll (0x80040202)

I am developing a winform fingerprint reader application using ZKFinger SDK. When i am running following code: ZKFPEngXClass obj = new ZKFPEngXClass(); obj.OnImageReceived += Obj_OnImageReceived; obj.OnCapture += Obj_OnCapture; obj.OnEnroll += Obj_OnEnroll; obj.OnFeatureInfo += Obj_OnFeatureInfo; then i get error on obj.OnCapture += Obj_OnCapture; obj.OnEnroll += Obj_OnEnroll; obj.OnFeatureInfo += Obj_OnFeatureInfo; but obj.OnImageReceived [...] read more
c#
.net
visual-studio
sdk
fingerprint
1vote
0answers

Linux 2.6.28 crashes when mem=1024M is passed as boot parameter from u-boot

I am working on building an linux for powerpc 8641d board. My U-boot has been modified to recognize 1 GB of memory(RAM) and it does. But Linux 2.6.28 crashes when mem=1024M is passed as boot parameter from u-boot. I have specified the memory size as 0x40000000 (1GB) in DTS file. [...] read more
linux
1vote
1answer

DCom/OPC application does not connect when running in visual studio, but .exe connects perfectly

I'm writing an OPC client that connects to a remote server and reads data etc. I am using advosol's BGServer class. The issue is, when I run the program in visual studio I get the following error on adding a group. "Exception from HRESULT: 0x80040202" My problem is similar to [...] read more
visual-studio
visual-studio-2010
dcom
opc
0votes
0answers

LeanFT IHM automation - Focus mouse

My project is to automate IHM. Bug scenario: 1. Click on the link 2. A pop-up window will appear, click on the "Select file ..." button. 3. The Windows framework (windows 10) is opened to select the file locally and click on "Open" The problem is that the mouse cannot [...] read more
java
leanft
0votes
1answer

C# COM NLA error HRESULT 0x80040202

Ok so I am trying to set up a Network Connection event using NetworkListManager from System.Runtime.InteropServices.ComTypes using this code: private NetworkListManager nlm; //This is initialized before private IConnectionPoint icp; private int cookie = 0; //This part is wrapped in a function call Console.WriteLine("Subscribing the INetworkListManagerEvents"); IConnectionPointContainer icpc = (IConnectionPointContainer)nlm; Guid [...] read more
c#
events
com
error-code
0votes
1answer

HRESULT 0x80040202 when adding an event Handler to ShellWindows

I'm trying to build up a service that runs in background on a bunch of remote computers that will simply monitor how many times IE is used for statistics purposes. Most of my code is written and it works absolutely fine on my development computer, which has the same specs [...] read more
c#
.net
shdocvw
0votes
0answers

Error while scripting ArcGIS in VB.NET "Exception from HRESULT: 0x80040202"

I am getting this Run time Error while coding ArcGIS in VB.NET script to calculate distance between two 3-D objects. > “Exception from HRESULT: 0x80040202” I tried to understand the problem but failed. Please help me to debug. I am trying to add a screen shot but it looks like [...] read more
vb.net
vb.net-2010
arcgis
comexception
0votes
1answer

COM based .net plugin framework

I have an ASP.NET MVC3 website which has to work with COM plugins. In order to do that I need to define an interface somehow. As far as I understand(I'm not a COM expert) this can be done either in .NET and export it with tlbexp.exe or idl->midl->tlbimp. I have [...] read more
c#
.net
com
com-interop

Comments

Leave a comment

(plain text only)

Sources

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

User contributions licensed under CC BY-SA 3.0