Skip to content
This repository has been archived by the owner on Jun 5, 2023. It is now read-only.

InvokeMethodAsync on a DotNetObjectReference throws NullReferenceException #113

Open
mrpmorris opened this issue Jun 10, 2020 · 2 comments

Comments

@mrpmorris
Copy link

I've edited the BlazorDesktopApp sample.

https://drive.google.com/file/d/1XxBcu6t4M7FQMsN1wfJ8JNNSfsQTDDHB/view?usp=sharing

Clicking the button should call into JS to call back a static method, and then call into JS to call back a method on the component.

The call to the object method fails - can anyone see why?

@mrpmorris
Copy link
Author

Note: If I copy / paste the code into a Web Assembly app it works fine.

@jspuij
Copy link

jspuij commented Jun 17, 2020

@mrpmorris You need to pull this:

#94

Or use my blazorwebview ;-)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants