-
Notifications
You must be signed in to change notification settings - Fork 51
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
Operations not callable using AddRemoteObject #113
Comments
Hi thanks for letting us know about this issue! The HRESULT (0x80070057) should mean that the JS call made it to the native code and there was some sort of failure in invoking the IDispatch on the native side. What is the definition of the object you're calling into? |
Plain C# - so generated CCW I assume - The IDispatch I/F is obtained using Marshal.GetIDispatchForObject, then IntPtr is passed to unmanaged C++ code (same process) to register with AddRemoteObject. The C++ code can directly query/invoke using IDispatch::Invoke no problem. In the above test code, definiton is:
|
I haven't tried with .NET's IDispatch implementation. Perhaps our code isn't working well with that. Thanks for the bug report! |
The same happens with a VB6 (don't ask!) supplied COM object. Intercepting the call to |
Hi @Gordy-1, We have resolved this issue in our most recent SDK update. |
Hi, operations not working with WebView2 AddRemoteObject API - Properties can be accessed but not operations.
Environment:
The text was updated successfully, but these errors were encountered: