dotnet / dotnet/wpf

Microsoft.Win32.OpenFileDialog cause application crash After update .NET9

Open
#10,305 27 comments 2 reactions 0 assignees View on GitHub
needs more information
Dominant language
C#
Stars
7.7k
Forks
1.3k
Avg merge
1d 11h
Merged PRs (30d)
61

Description

After update .NET9, dialog.ShowDialog() crash the application . It happens on some machine, not all machine.
The same code work on .net8.

```

Microsoft.Win32.OpenFileDialog dialog = new Microsoft.Win32.OpenFileDialog();

bool? dialogResult = dialog.ShowDialog();
```

Contributor guide

Open the contributing guide

Research direction

Start with the minimal C# example using Microsoft.Win32.OpenFileDialog and dialog.ShowDialog(), then compare its behavior on .NET 8 and .NET 9 across affected and unaffected machines. The issue names no source file or test; done means identifying the machine-specific conditions and preventing the .NET 9 crash without regressing the .NET 8 behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.