Skip to content

Fail predictably and with better error message for WinRT #182

Closed
dotnet/runtime
#133397

Description

@MichalStrehovsky

Interop/WinRT/WinRT

Activity

  1. changed the title [-]Fail predictably for WinRT[/-] [+]Fail predictably and with better error message for WinRT[/+] on Oct 18, 2020
  2. emily33901 commented on Nov 3, 2020

    @emily33901

    Think I might have run into this one - is it just in any case of WinRT being used in the process where nativeaot is being run?

  3. MichalStrehovsky commented on Nov 3, 2020

    @MichalStrehovsky
    MemberAuthor

    This is for situation when an assembly being compiled to native code refers to a WinMD. NativeAot should be able to co-exist with WinRT runtime in the process - it just can't talk to it through the WinRT ABI directly.

    Built-in support for WinRT was yanked from CoreCLR too, so this issue tracks simulating whatever error mode CoreCLR has for this.

    (CsWinRT solves the problem for .NET 5 in general after support in the runtime has been yanked. NativeAOT currently lacks a component that CsWinRT depends on, but that will be the WinRT support story for NativeAOT eventually too.)

  4. emily33901 commented on Nov 4, 2020

    @emily33901

    NativeAOT will fast fail the process seemingly if it something that is unrealated to it throwing a com exception (or for that matter any hardware exception) even if its outside of its mapped address space which is very frustrating when (in my situation) you have no control over the code that throws that in question (libcef loading winapi loading combase which causes NativeAOT to go to RhpThrowHwEx and fastfail the process)

  5. jkotas commented on Nov 4, 2020

    @jkotas
    Member

    @emily33901 Could you please open a new issue on this, include the stacktrace where you see RhpThrowHwEx getting called?

  6. emily33901 commented on Nov 4, 2020

    @emily33901

    Yeah will do

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-NativeAOT-coreclr.NET runtime optimized for ahead of time compilationbugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions