mscorlib.dll中发生了未处理的“system.stackoverflowexception”类型异常 [英] An unhandled exception of type 'system.stackoverflowexception' occurred in mscorlib.dll

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

问题描述

当我运行我的项目时,此错误即将来临

我正在使用Visual Studio 2017社区

请帮助我。



错误是



Hi ,when i run my project this error is coming
I am using Visual Studio 2017 Community
Please help me.

Error is

An Unhandled exception of type 'system.stackoverflowexception' occurred in mscorlib.dll





我尝试过:



任何项目我我正在运行它抛出相同的错误



What I have tried:

Any project i am running it is throwing same error

推荐答案

A StackOverflowException 表示您正在运行具有方法的代码或属性调用(直接或间接)自行调用。



1)激活异常,检查所有类型的公共语言运行时异常:

调试>例外



在调试模式下执行 - VS会在相关位置中断吗?



否?



2)使用Debug> Windows>调用堆栈(在调试时)查看导致异常的调用。





3)

如果你找不到问题的根源,请分享你的代码,因为这里没有思想家,我担心......
A StackOverflowException indicates that you are running code that has a method or property call that call itself (directly or indirectly) recursively.

1) Activate Exceptions to be shown be checking all types of Common Language Runtime Exceptions at:
Debug > Exceptions

Execute in debug mode - does VS break at a relevant place?

No?

2) Use the Debug > Windows > Call Stack (at debug time) to review the calls that are leading towards the exception.


3)
Share your code if you cannot find the source of your problem since there are no mindreaders here I am afraid...


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

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