应用程序崩溃是由于计算器 [英] Application crashing due to stackoverflow

查看:308
本文介绍了应用程序崩溃是由于计算器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

此错误是杀了我这么多。我不能够在Application_OnError捕捉到了这个错误。 。我能够得到的唯一信息是事件查看器日志

This error is killing me so much. I am not able to capture this error at Application_OnError. The only message I am able to get is Event Viewer log.

Application: w3wp.exe
Framework Version: v4.0.30319
Description: The process was terminated due to stack overflow.



Faulting application w3wp.exe, version 7.0.6001.18000, time stamp 0x47919413, faulting module nlssorting.dll, version 4.0.30319.235, time stamp 0x4da3fc88, exception code 0xc00000fd, fault offset 0x000020d4, process id 0x%9, application start time 0x%10.



我有一个非常大的应用程序,并出现上述错误,我无法判断哪里是准确该计算器的原因。你能帮我解决这个?

I have a very large application and with the above error I am not able to judge where is the exact cause of the stackoverflow. Can you help me fixing this?

推荐答案

在Application_End你可能会得到更多的帮助。从这里,你可以使用这样的事情...

You may get more help in Application_End. From here, you can capture the shutdown stack using something like this...

HttpRuntime runtime = (HttpRuntime)typeof(System.Web.HttpRuntime).InvokeMember("_theRuntime", BindingFlags.NonPublic | BindingFlags.Static | BindingFlags.GetField, null, null, null);

(string)runtime.GetType().InvokeMember("_shutDownStack", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.GetField, null, runtime, null);

(string)runtime.GetType().InvokeMember("_shutDownMessage", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.GetField, null, runtime, null);

这篇关于应用程序崩溃是由于计算器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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