-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Closed
Description
.NET version
.NET 10.0 SDK build: 10.0.100-preview.4.25177.19
Did it work in .NET Framework?
Yes
Did it work in any of the earlier releases of .NET Core or .NET 5+?
Yes, cannot repro in previous .NET versions, regressed from .NET 10.0 Preview 4, cannot repro in .NET 10.0 Preview 3.
Issue description
Simpler repro:
public static void Main()
{
CauseStackOverflow();
}
private static void CauseStackOverflow()
{
CauseStackOverflow();
}
After the update VS hangs
Old repro:
StackOverFlowException cannot be popped up when errorProvider with a large size icon: 256*256
.NET 10: when running app, cannot get StackOverFlowException and runtime form
ErrorProvider_NET10.mp4
.NET 9 and .NET framework 4.8.1: get StackOverFlowException when running app
System.StackOverflowException
HResult=0x800703E9
Source=
StackTrace:
ErrorProvider_NET9.mp4
Steps to reproduce
Repro steps:
- Create a Winforms .NET 10 app with TextBox and ErrorProvider added
- Give a large icon with 256*256 size for errorProvider's Icon property
- Double-click form designer, SetError for textBox in Form1_Load event
private void Form1_Load(object sender, EventArgs e)
{
errorProvider1.SetError(textBox1, "testing");
}
- Build and run application
or use this sample app: WinFormsApp31.zip