a StackOverflowException which doesn't make sense

From: Jakub Gajda (anonymous_at_discussions.microsoft.com)
Date: 03/31/04


Date: Wed, 31 Mar 2004 04:16:07 -0800

Hello.
I have encountered a strange crashing of an app I'm working on.
When I was trying to isolate the cause of the exception I made
following discovery:
When I create a new project: Windows Application in C#, add a button
on the form and write the following lines into the Click event
handler:
private void button1_Click(object sender, System.EventArgs e)
{
SaveFileDialog dlg = new SaveFileDialog();
dlg.ShowDialog();
}
the application will crash when I close the save file dialog. It
crashes on the line with the closing bracket
of the Main() function.
As far as I know the problem occurs only on machines with winXP with
latest updates and MS Visual Studio .NET 2003 installed. The problem
doesn't occur on Win2k with MS Visual Studio .NET nor on WinXP
without MS Visual Studio .NET.
Did anybody encountered similar problem?

Regards,
Jakub Gajda