Windows error 0x80131527, -2146233049

Detailed Error Information

COR_E_INVALIDCOMOBJECT[1]

Message"An invalid __ComObject has been used."
Comment An invalid __ComObject has been used.

HRESULT analysis[2]

FlagsSeverityFailure
Reserved (R)false
OriginMicrosoft
NTSTATUSfalse
Reserved (X)false
FacilityCode19 (0x013)
NameFACILITY_URT[2][3]
DescriptionThe source of the error code is .NET CLR.[2][3]
Error Code5415 (0x1527)

Questions

1vote
0answers

"COM object separated from its underlying RCW" error when using VirtualFileDataObject with async/await

I'm trying to use David Anson's VirtualFileDataObject (as shipped in this NuGet package), and there's a few problems I'm running into. One occurs when passing an async void to the StreamContents property. This will work fine: Dim descriptor As New VirtualFileDataObject.VirtualFileDataObject.FileDescriptor With { .Name = info.FileName, .StreamContents = Sub(s) Dim [...] read more
com
async-await
.net-4.6
0votes
0answers

COM objects, RCWs and dynamic... something does not play right?

C#, full .NET 4.7 framework Here is the code to demonstrate the problem. Console applications, single thread. static void Main() { var appType = System.Type.GetTypeFromProgID("Word.Application"); dynamic app = System.Activator.CreateInstance(appType); dynamic documents = app.Documents; object ConfirmConversions = false; dynamic document = documents.Open(@"document.docx", ref ConfirmConversions); var b1 = true; var b2 = [...] read more
c#
dynamic
interop
0votes
0answers

Compact Framework blocks access to COM Connection Points

I've been Googling a lot for this but no one seems to be talking about this issue. I have a COM component written in C++ that exposes events ("connection points" in COM parlance). This component (a map control) has been used reliably for several years by clients written in C++ [...] read more
c#
com
garbage-collection
compact-framework

Comments

Leave a comment

(plain text only)

Sources

  1. https://github.com/dotnet/coreclr/blob/v1.1.0/src/inc/corerror.xml
  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