Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Out-of-process WinRT doesn't support passing null to an array parameter #1563

Open
hez2010 opened this issue Apr 8, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@hez2010
Copy link
Contributor

hez2010 commented Apr 8, 2024

Describe the bug
Out-of-process WinRT doesn't support passing null to an array parameter.

While trying to do this, an exception will be thrown.

System.Runtime.InteropServices.COMException (0x800706F4)
   at WinRT.ExceptionHelpers.<ThrowExceptionForHR>g__Throw|39_0(Int32 hr)
   at WinRT.ExceptionHelpers.ThrowExceptionForHR(Int32 hr)
   at ABI.WinRTServer.ITestClassClassMethods.Test(IObjectReference _obj, Int32[] array)
   at WinRTServer.TestClass.Test(Int32[] array)
   at Program.<Main>$(String[] args)

Note that in-process server does work in this scenario.

To Reproduce

  1. Clone https://github.com/hez2010/WinRTServer
  2. Checkout the branch array-repro: https://github.com/hez2010/WinRTServer/tree/array-repro
  3. Build and run

Expected behavior
No exception.

Version Info
CsWinRT 2.0.7

Additional context

@hez2010 hez2010 added the bug Something isn't working label Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant