dotnet / dotnet/winforms

Windows forms ComboBox.DropDownStyle change causes System.AccessViolationException randomly

Open
#3,595 12 comments 1 reaction 1 assignee Claimed by @JeremyKuhne View on GitHub
:beetle: bug enhancement
Dominant language
C#
Stars
4.9k
Forks
1.1k
Avg merge
1d 13m
Merged PRs (30d)
85

Description

* .NET Core Version:
.Net 5.0.100-rc.1.20366.7 from 5.0 master branch + VS2019 with latest core designer

* Have you experienced this same bug with .NET Framework?:
Yes

**More Info**
This issue can reproduce from .NET 3.5 to .NET 4.8 on Dev14/Dev15/Dev16. And this is a randomly issue, not happened each time.

**Minimal repro:**
1. Extract “Core.zip” and open it in VS.
[Core.zip](https://github.com/dotnet/winforms/files/4935973/Core.zip)
2. Build and run the project.
3. Click the dropdown button of ComboBox in form1, then form2 shown.
4. Click “X” to close form2.

**Actual behavior:**
After step4, an error dialog pop up:
[Call_stack.txt](https://github.com/dotnet/winforms/files/4935975/Call_stack.txt)
![System_AccessViolationException](https://user-images.githubusercontent.com/45864017/87753381-1044fd00-c835-11ea-957b-45225cf06de7.png)

**Expected behavior:**
There is no error dialog pop up. The project can run normally.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.