question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CoreTextServicesManager.GetForCurrentView() throws exceotion in WinUI3 for Desktop preview 4

See original GitHub issue

When running the following code

var manager = CoreTextServicesManager.GetForCurrentView();

The following exception is thrown

System.Runtime.InteropServices.COMException: ‘The application called an interface that was marshalled for a different thread. (0x8001010E (RPC_E_WRONG_THREAD))’

The calling thread is the ui thread. Looks like a bug.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:16 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
arivoircommented, Dec 6, 2022

The exception is no longer thrown, but the TextUpdating event is not raised for English keyboard. is this expected?

2reactions
JesseColcommented, Feb 19, 2021

Ah, thanks @arivoir – turns out this is only working in insider Windows builds, unfortunately all the shipping versions of Windows are failing in the way you’ve mentioned. We’ll add this to the list. Sorry for the oversight and thanks for letting us know.

Read more comments on GitHub >

github_iconTop Results From Across the Web

NavigationView gives an exception when it's the only thing ...
I'm using the new Project Reunion 0.5/WinUI3 Preview 5. And after my upgrade from Preview 4, I started to get this error: Exception...
Read more >
Windows UI Library 3 - Project Reunion 0.5 Preview ...
This preview of WinUI 3 works with both desktop/Win32 and UWP apps, and includes Visual Studio project templates to help get started building ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found