Skip to content
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

SendWebMessage bug on v3.1.17 #211

Closed
towerbit opened this issue Sep 18, 2024 · 4 comments
Closed

SendWebMessage bug on v3.1.17 #211

towerbit opened this issue Sep 18, 2024 · 4 comments

Comments

@towerbit
Copy link

There seems to be an issue where only the first character of the message string is returned by SendWebMessage() when the 'Call .NET' button is clicked in the Photino sample code (Photino.HelloPhotino.NET) on Windows 10, while running with Photino.NET v3.1.17. The sample code worked well with the last version I tried, which was Photino.NET 2.3.0.

@raddevus
Copy link

I just tried this on Ubuntu 22.04.4 LTS and on Windows 10.
I can confirm that it works properly on Ubuntu 22.04.4.
And, it does seem to only show the first character on Win10.
Here's a snapshot of the failure on Win10:
image

Just as the @towerbit said, this is occuring when running Photino.NET v3.1.17

@MikeYeager
Copy link
Collaborator

@towerbit @raddevus Can you confirm that the sample project is targeting .NET 6? If so, does it work if you change it to .NET 7 or .NET 8?

@towerbit
Copy link
Author

It works properly on .NET 7 and .NET 8, but not on .NET 6.

@MikeYeager
Copy link
Collaborator

@towerbit Thanks for confirming. We were able to duplicate the issue and fix it, though we haven't posted a new version yet. It stems from how marshalling was dramatically changed in .NET 7 and 8. It should be working in .NET 6 with the next release. Until then, if you can compile for .NET 7 or 8 instead of 6 you can use that as a work-around.

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

No branches or pull requests

4 participants