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

Application Crash When Using MediaPicker in Native Embedding Demo on Windows (WinUI Project) #501

Open
deepathiruppathy01 opened this issue Aug 20, 2024 · 0 comments

Comments

@deepathiruppathy01
Copy link

deepathiruppathy01 commented Aug 20, 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:

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?

@deepathiruppathy01 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 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
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

1 participant