Skip to content

FolderDepth.Deep Win32 unhandled exception on WinUI 1.6 #10407

@Ponant

Description

@Ponant

Describe the bug

var query = Folder.CreateFileQueryWithOptions(new QueryOptions() { FolderDepth=FolderDepth.Deep});

Throws a Win32 unhandled exeception in debug mode

Whereas
var query = Folder.CreateFileQueryWithOptions(new QueryOptions());
doesn't.

I am porting a UWP where the code was running well for some time now, but on WinUI it narrows down to this.
Any clue?

Steps to reproduce the bug

See above

Expected behavior

Should not crash in debug mode

Screenshots

No response

NuGet package version

Microsoft.WindowsAppSDK 1.6.250205002
Microsoft.Windows.SDK.BuildTools 10.0.26100.1742

Windows version

24H2
Build 26100.3194

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions