Project中发生了未处理的“System.StackOverflowException”类型异常 [英] An unhandled exception of type 'System.StackOverflowException' occurred in Project

查看:75
本文介绍了Project中发生了未处理的“System.StackOverflowException”类型异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Project

解决方案

中发生类型为System.StackOverflowException的未处理异常这是一个易于调试和修复的异常之一。实际上,它几乎不可能是无限递归相互递归。请参阅:

http://en.wikipedia.org/wiki/Recursion [< a href =http://en.wikipedia.org/wiki/Recursiontarget =_ blanktitle =New Window> ^ ],

http://en.wikipedia.org/wiki/Recursion_%28computer_science%29 [ ^ ],

http://en.wikipedia.org/wiki/Mutual_recursion [ ^ ]。



发现问题的关键技术:调试器窗口调用堆栈。我想你可以理解为什么。用它来查看来电的来源。您需要检测一次又一次执行的代码中的位置。相应的调试技术非常重要,你当然需要掌握它们,因为没有这些技能就不可能进行真正的编程。



-SA

An unhandled exception of type 'System.StackOverflowException' occurred in Project

解决方案

This is one of the exceptions which is easy to debug and fix. Practically, it hardly can be anything but "infinite" recursion or mutual recursion. Please see:
http://en.wikipedia.org/wiki/Recursion[^],
http://en.wikipedia.org/wiki/Recursion_%28computer_science%29[^],
http://en.wikipedia.org/wiki/Mutual_recursion[^].

The key technique to discovering the problem: Debugger window "Call stack". I guess you can understand why. Use it to see where the call comes from. You need to detect the place in the code which is executing again and again. Corresponding debugging techniques are so practically important that you certainly need to master them, because without such skills it's impossible to do real programming.

—SA


这篇关于Project中发生了未处理的“System.StackOverflowException”类型异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆