【问题标题】:When Urge records are exist getting an StackOverFlow exception当存在 Urge 记录时,会出现 StackOverFlow 异常
【发布时间】:2011-08-21 00:51:56
【问题描述】:

这里的 studenDetailsList 是从包含 30,000 条记录的数据库中获取的

Var studentDetailsList;
Foreach ( var stDetails in studentDetailsList)
{
     // Here i am inserting each student in to table
}

我收到错误了

未处理的类型异常 'System.StackOverflowException' 发生在 System.Data.Entity.dll 中

可能是什么问题?

谁能帮忙

【问题讨论】:

  • 请注明错误来源..

标签: c# .net-3.5 asp.net-3.5 ado.net-entity-data-model


【解决方案1】:

可能答案是这段代码有bug:

 // Here i am inserting each student in to table

但是,由于您选择不发布实际代码,因此没有人能说出错误在哪里。

就像不是一样,那段代码递归地调用原始函数。但是,您选择不透露原始函数的名称 :-(

【讨论】:

    猜你喜欢
    • 2021-01-30
    • 1970-01-01
    • 1970-01-01
    • 2022-07-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-10-27
    相关资源
    最近更新 更多