Skip to content

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

@deepathiruppathy01

Description

@deepathiruppathy01

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions