Windows error 0x80131538, -2146233032

Detailed Error Information

COR_E_SAFEARRAYRANKMISMATCH[1]

Message"A mismatch has occurred between the runtime rank of the array and the rank recorded in the metadata."
Comment A mismatch has occurred between the runtime rank of the array and the rank recorded in the metadata

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 Code5432 (0x1538)

Questions

5votes
1answer

need to call managed code from unmanaged c++ code

I wrote COM class in C#, and one function like this : public void SignAttached( byte[] message, ref byte[] signedMessage, string userName = "USER" ) } when i try to call this function from C++ code i have exeption: - "SafeArray of rank 12536 has been passed to a method [...] read more
c#
c++
serialization
com
safearray
3votes
1answer

Hosting CLR - Bad parameters

I'm trying to host the CLR inside my C++ application and I'm having problems invoking the entry point of the managed application. The entry point is defined as usual: static void Main(string[] args) And here's the actual C++ code: CComPtr<_MethodInfo> entryPoint; hr = assembly->get_EntryPoint(&entryPoint); // this works just fine if [...] read more
c++
clr
clr-hosting

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