当存在 Urge 记录时出现 StackOverFlow 异常
这里的studenDetailsList是从包含30,000条记录的数据库中获取的,
Var studentDetailsList;
Foreach ( var stDetails in studentDetailsList)
{
// Here i am inserting each student in to table
}
我收到错误
未处理的类型异常 '系统.StackOverflowException' 发生在System.Data.Entity.dll
可能是什么问题?
有人可以帮忙吗
Here studenDetailsList are getting from database which consists of 30,000 records
Var studentDetailsList;
Foreach ( var stDetails in studentDetailsList)
{
// Here i am inserting each student in to table
}
I am getting error has
An unhandled exception of type
'System.StackOverflowException'
occurred in System.Data.Entity.dll
What could be the problem ?
can anybody help
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
答案可能是这段代码中有一个错误:
但是,当您选择不发布实际代码时,没有人可以说错误在哪里。
就像不是一样,那段代码正在递归调用原始函数。但是,您选择不透露原始函数的名称:-(
Probably the answer is that there is a bug in this piece of code:
However, as you choose not to post the actual code, no-one can say where the bug is.
Like as not, that piece of code is recursively calling the original function. However, you chose not to reveal the name of the original function :-(