应用程序崩溃问题 [英] Application Crash Issue

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

问题描述



我的应用程序使用C#和WPF和一个第三方DLL.我正在使用VS 2008进行开发.当我在调试或发布模式下运行该应用程序时,它崩溃而没有给出任何调用堆栈.我知道崩溃是由于第3方DLL而发生的,但由于无法获得任何调用堆栈,我无法进入使应用程序崩溃的代码行.我也尝试过选中例外"弹出窗口(CTRL + ALT + E)上的所有复选框,但这没有帮助.应用程序崩溃,并显示以下错误程序已退出,并显示了代码...".有什么办法知道导致此崩溃的原因吗?解决这个问题的正确方法是什么?

在此先感谢您.

Hi,

My application uses C# and WPF and a 3rd party DLL. I am using VS 2008 for development. When I run the application in debug or release mode it crashes without giving any call stack. I know that the crash is happening because of this 3rd party DLL but I cannot get to the line of code which crashes the app because I don''t get any call stack. I have also tried checking all the check boxes on the Exceptions popup (CTRL+ALT+E) but that did not help. The application crashes with the following error "The program has exited with code ...". Is there any way of knowing what is causing this crash? Which is the right way of approaching this issue?

Thanks in advance.

推荐答案

在代码中放置一个顶级异常处理程序.如果仍不能解决问题,请检查是否安装了正确版本的.NET.
Put a top level exception handler in your code. If that does not catch it, then check things like if the right version of .NET is installed.


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

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