I thought it was related to WinUI. After i ported the same code to C# multiple issues I am having in C++ are simply gone.
I hope I am doing something wrong in C++ with C++/ WinRT. But i think there is a possiblity that there are some issues with the C++/WinRT's library around IObservableVector::Clear (crashing) and threading issues related to co_await with IAsyncXXX (UI freezes)
The issue #7972 has detailed description and a minimal repro app (C++/WinRT). Thanks
Unfortunately, we don't have the capacity to debug Xaml apps. Since you've already opened issues for this on the Xaml repo I'll go ahead and close this issue.
Please see the issue that I originally raised against WinUI 3 https://github.com/microsoft/microsoft-ui-xaml/issues/7972 and the related https://github.com/microsoft/microsoft-ui-xaml/issues/7975
I thought it was related to WinUI. After i ported the same code to C# multiple issues I am having in C++ are simply gone.
I hope I am doing something wrong in C++ with C++/ WinRT. But i think there is a possiblity that there are some issues with the C++/WinRT's library around IObservableVector::Clear (crashing) and threading issues related to co_await with IAsyncXXX (UI freezes)
The issue #7972 has detailed description and a minimal repro app (C++/WinRT). Thanks