-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Native dependencies in Blazor WebAssembly - Issue when try use a callback from C++ #60824
Comments
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
Tagging subscribers to 'arch-wasm': @lewing Issue DetailsExcellent 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. When try to run the code with callback, an exception occurs.
Code details in following repository: BlazorCrank Thanks in advance
|
@harveytriana To use native code make sure that:
Here is a patch for the BlazorCrank project that shows how to make it work. Result: |
Excelent. Thanks. |
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.
When try to run the code with callback, an exception occurs.
Code details in following repository: BlazorCrank
Thanks in advance
The text was updated successfully, but these errors were encountered: