C#应用程式当机 [英] C# Application crash

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

问题描述

从调试文件夹运行exe时,我的应用程序崩溃了.

My application got crash while running exe from debug folder.

我正在使用64位计算机,并且该应用程序是在Microsoft Visual c#2008 Express Edition中制作的.

I am working on 64 bit machine and the application was made in Microsoft Visual c# 2008 Express Edition.

当我通过Microsoft Visual c#2008运行应用程序时,它运行正常,但是当我运行exe时,应用程序崩溃了.

When I run the application through Microsoft Visual c# 2008 it works fine but when I run the exe the application got crash.

它显示以下消息

............................................... ................................................... ................................................... .....................

.................................................................................................................................................................................

应用程序中的断点表示程序错误.

关闭此对话框后,应用程序将继续运行,但可能处于不稳定状态.

 异常代码:   80000003
 例外补偿:   000fa668

  Exception Code:    80000003
  Exception Offset:    000fa668

............................................... ................................................... ................................................... ...................... .......

................................................................................................................................................................................

我不明白为什么应用程序崩溃.

I am not getting why the application got crash .

需要帮助.

提前谢谢.

推荐答案

能否请您发布一些在应用程序启动时运行的代码?没有它,就很难弄清为什么您的应用程序崩溃了……

Could you please post some code that runs when the application is started? Without it, it's pretty impossible to make any sense on why your application is crashing...

一些疯狂的猜测:

-您是否正在访问调试文件夹中不可用的文件?
-您的代码中是否包含编译器指令?
-该项目在Visual Studio中配置了启动参数吗?

- are you accessing files that aren't available in the debug folder?
- do you have compiler directives in the code?
- is the project configured with startup parameters in Visual Studio?

您可以添加一些异常处理(这绝不是一个坏主意!),以更好地描述异常发生的位置和原因.

You could add some exception handling (never a bad idea!) to get a better description of where and why an exception occurs.

希望这会有所帮助


这篇关于C#应用程式当机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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