已知:
public
class
TestC
{
TestC t = new TestC();
int i = 0 ;
public TestC()
{
}
}
{
TestC t = new TestC();
int i = 0 ;
public TestC()
{
}
}
使用:
try
{
TestC t = new TestC();
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
{
TestC t = new TestC();
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
将抛出堆栈异常
framework 2.0 无法捕获该异常