You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are experiencing an issue where the application crashes when trying to browse an image file using the MediaPicker class in a WinUI project within the Native Embedding Demo. The problem occurs specifically when attempting to execute MediaPicker.Default.PickPhotoAsync().
Modifications: In the MyMauiContent.xaml file, we modified the default button named "CounterBtn" and changed its Clicked event to execute the method MediaPicker.Default.PickPhotoAsync().
Replication Steps:
a. Open the solution file in Visual Studio and set the "NativeEmbeddingDemo.WinUI" project as the startup project.
b. Run the sample and click on the "Browse image" button.
c. The application crashes.
Issue: The crash appears to be due to the following error:
"The active Window cannot be detected. Ensure that you have called Init in your Application class."
Could you please share your suggestions on how to resolve this issue?
The text was updated successfully, but these errors were encountered:
deepathiruppathy01
changed the title
Application is getting Crash when browsing image file in Native embedding demo using MediaPicker class
Application is getting Crash when browsing image file in Native embedding demo using MediaPicker class in WinUI project
Aug 20, 2024
deepathiruppathy01
changed the title
Application is getting Crash when browsing image file in Native embedding demo using MediaPicker class in WinUI project
Application Crash When Using MediaPicker in Native Embedding Demo on Windows (WinUI Project)
Aug 22, 2024
We are experiencing an issue where the application crashes when trying to browse an image file using the MediaPicker class in a WinUI project within the Native Embedding Demo. The problem occurs specifically when attempting to execute MediaPicker.Default.PickPhotoAsync().
Details:
https://github.com/dotnet/maui-samples/tree/main/8.0/PlatformIntegration/NativeEmbeddingDemo
Replication Steps:
a. Open the solution file in Visual Studio and set the "NativeEmbeddingDemo.WinUI" project as the startup project.
b. Run the sample and click on the "Browse image" button.
c. The application crashes.
Issue: The crash appears to be due to the following error:
"The active Window cannot be detected. Ensure that you have called Init in your Application class."
Could you please share your suggestions on how to resolve this issue?
The text was updated successfully, but these errors were encountered: