Skip to content

Native dependencies in Blazor WebAssembly - Issue when try use a callback from C++ #60824

@harveytriana

Description

@harveytriana

Excellent and amazing progress in Blazor. I illustrate some experience with this new feature. Also, the purpose is to show that there is an issue when using a C++ callback.

To get into context, I have first written the experiment with a C# net6 console and a C++ library. The same code from this C++ library is then copied into a Blazor WASM project, in a folder and referenced in project file as native reference.

When run in Blazor project then following images show the result. Perfect.

bz-cpp-1

When try to run the code with callback, an exception occurs.

bz-cpp-2

Assertion at /__w/1/s/src/mono/mono/metadata/loader.c:1806, condition '<disabled>' not met

Code details in following repository: BlazorCrank

Thanks in advance

Metadata

Metadata

Assignees

No one assigned

    Labels

    arch-wasmWebAssembly architecturearea-Interop-monoquestionAnswer questions and provide assistance, not an issue with source code or documentation.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions