exe中发生异常 [英] exception occured in exe

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

问题描述

我在c#中创建了一个Windows应用程序.我将其转换为exe文件,并将该exe安装在另一个系统中.在运行该软件(exe)时,它将进入一个表格以输入详细信息.当我尝试在该文本框中输入详细信息时,我会遇到异常
尝试读取或写入受保护的内存.这通常表明其他内存已损坏",为我提供了解决方案.

i created a windows application in c#.i converted it into an exe file and installed that exe in another system. while running that software(exe) it goes to a form to enter details. when i try to enter details in that text box im gettin an exception
"Attempted to read or write protected memory. This is often an indication that other memory is corrupt" provide me a solution for it

推荐答案

我们不能.

我们绝对不知道您的软件在做什么,如何做,或任何其他有帮助的细节.

恐怕我们只能提供一般性建议:
如果软件仅在非开发机器上失败,则您需要添加日志记录语句以跟踪执行,并尝试找出代码在哪里失败—到达失败点的路径. .

如果您可以使它在开发计算机上失败,则可以使用调试器加快该过程.

如果可以的话,我会避免的一件事是:不要试图在出现故障的计算机上安装VS-它可能会安装一些可以解决问题的方法.这是一场噩梦,因为您将永远不知道那是什么,而问题通常会在很少或根本没有时间修复的情况下再次发生...
We can''t.

We have absolutely no idea what your software is doing, how it is doing it, or any other details which would help.

I''m afraid all we can do is give general advice:
If the software only fails on a non-development machine, then you need to add logging statements to trace the execution, and try to work out where in the code it is failing - what path it took to get to the point at which it fails.

If you can get it to fail on your development machine, then you can use the debugger to speed the process up.

The one thing I would avoid if I could is: Do not be tempted to install VS on the machine that is failing - it may install something which cures the problem. Which is a nightmare, because you will never know what it was and the problem will happen again, normally when there is little or no time to fix it...


这篇关于exe中发生异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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