我在asp.net中编写了一个代码,用于从文件中读取数据并绘制图形。在mscorlib.dll中发生未处理的异常'System.StackOverflowException'
它的工作,但一段时间后,当我运行该程序,此异常出现
在此
“未处理的类型‘System.StackOverflowException’ mscorlib.dll中发生的异常”在代码中的声明:
if (File.Exists(fName)) <----(here is the exception)
{
stream = File.Open(fName, FileMode.Open);
g_day = Deserialize(stream);
stream.Close();
int cn = 0;
if (g_day.Values.Count != 0)
cn = g_day.Values[g_day.Values.Count - 1].Value;
Label1.Text = cn.ToString();
}
使用编辑器的格式功能,以便我们可以读取您的代码。 – mwilson 2010-05-06 15:43:04
这是你提供了Deserialize()函数一部分的代码片段吗? – 2010-05-06 15:48:55
哪个版本的.NET?另外,你可以发布堆栈跟踪吗? – Paolo 2010-05-06 15:52:13