程序停止运行直到我重新编译 [英] Program stops running till I recompile

查看:72
本文介绍了程序停止运行直到我重新编译的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


这个问题我只用C#

我编写了一个程序,运行几个月,然后停止运行输出错误,直到我用VS重新编译它代码的任何变化。

然后再运作几个月。

为什么?

有人有线索吗?

在C#上编写的可执行文件是否有效,直到某些东西开始不兼容并需要更改一些代码?

为什么我需要在相同的VS版本上重新编译相同的代码才能使程序再次运行?

谢谢

Eli



我的尝试:



我重新编译了不同的时间,但我没有任何调试,程序工作正常(如果重新编译)几个月

Hi This problem I have only with C#
I wrote a program, that works fine for a few months, then it stops running outputting errors, till I recompile it with VS without any change in code.
Then it works again for a few months.
Why?
Someone has a clue?
Aren't executables written on C# valid till something start to be incompatible and require some code change?
Why I need to recompile the same code on the same VS version for the program to work again?
Thanks
Eli

What I have tried:

I Recompiling various times, but I don't have anything to debug, the program works fine (if recompiled) for months

推荐答案

非常奇怪,但重新编译完全没必要。



如果没有看到错误消息以及代码应该做什么,对任何人来说都是不可能的告诉你一个nything有用。
Very strange, but the recompile is completely unnecessary.

Without seeing the error messages and what the code is supposed to be doing, it's impossible for anyone to tell you anything useful.


据我所知,我期待别人得到这个问题,并且可以说清楚原因。
现在程序正在运行(没有Visual Studio运行)因此我没有错误显示。

程序的功能是访问互联网以填补BOM上电子组件的成本。它找到了组件的最低成本,填补了成本和以较低成本供应的经销商。



上次当我收到错误时我试图进入VS没有重新编译,但这还不够。

下次发生时我会再次发布错误的屏幕截图。

此外我将进入VS并尝试运行它来自VS而不是发布而不是调试。



与此同时,如果其他人遇到这个问题会很有趣。

(另外我也是会相信我的小电脑里有小绿巨人吗?



谢谢

ELi
I understand, I was expecting someone else got this issues, and can bring some light to the reason.
Now the program is working(without Visual Studio running) therefore I have no errors to show.
The function of the program is accessing the internet in order to fill up costs of electronic components on a BOM. It finds the lowest cost for the component, fill the cost and the distributor that supply with the lower cost.

Last time when I got the error I tried to enter VS without recompiling, but that wasn't sufficient.
Next time it happens I will post again with a screenshoot of the error.
Also I will enter VS and try to run it from VS but on release instead on debug.

In the meantime will be interesting if someone else had this problems.
(Else I will believe I have little green trolls into my PC)

Thanks
ELi


这篇关于程序停止运行直到我重新编译的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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