[Packaged App]co_await
does't return to ui thread. when the call PickSingleFolderAsync
is completed
#1782
Labels
Milestone
Describe the bug
Internal bug https://task.ms/37013204
windowsappsdk preivew-3:
StorageFolder folder = co_await picker.PickSingleFolderAsync();
at this point
call
DependencyObject::SetValue
throw errors.The application called an interface that was marshalled for a different thread
//
Steps to reproduce the bug
Create c++ package app by windowsappsdk.
Call
FolderPicker
to open select folder dialog on button clicked event.then DependencyObject::SetValue
Expected behavior
before windowsappsdk preview-3
c++/winrt will restore to ui thread automatically.
why preview-3 change this ?
Screenshots
NuGet package version
1.0.0-preview3
Packaging type
Packaged (MSIX)
Windows version
Windows 11 (22000)
IDE
Visual Studio 2022
Additional context
to avoid me bebing wrong, I recreate an empty pacakged project and test .
unpackaged app:
The text was updated successfully, but these errors were encountered: