我的Windows窗体应用程序中的System.Windows.Forms.dll发生了未处理的“System.StackOverflowException”类型异常

时间:2014-03-29 10:04:53

标签: c# winforms stack-overflow

这是我的代码:

private void InitializeComponent()
{
    this.components = new System.ComponentModel.Container();
    this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; // Exception
    this.Text = "GenerateBill";
}

如上面第二行代码所示

An unhandled exception of type 'System.StackOverflowException' occurred in System.Windows.Forms.dll

我做了什么...... 请帮助我创建新的表单应用程序,因为它再次显示相同的异常。

请帮帮我

这是我的调用堆栈:         [外部代码]

  

CrossDine-Forms.exe!CrossDine_Forms.Home.InitializeComponent()第32行+ 0xd字节C#       CrossDine-Forms.exe!CrossDine_Forms.Home.Home()第17行+ 0x8字节C#       CrossDine-Forms.exe!CrossDine_Forms.Index.Index()第18行+ 0x15字节C#       CrossDine-Forms.exe!CrossDine_Forms.Index.Index()第20行+ 0x15字节C#       CrossDine-Forms.exe!CrossDine_Forms.Index.Index()第20行+ 0x15字节C#

The maximum number of stack frames supported by Visual Studio has been exceeded.    

0 个答案:

没有答案