.net应用程序崩溃,除非重命名 [英] .net application crashes unless renamed

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

问题描述

我有.Net应用程序用C#开发,使用C ++库,运行在64位Windows 7操作系统,但在32位模式。一切都很好,直到最近我开始迁移这个应用程序到64位模式。在工作期间,我回到我的32位原始版本,现在它不工作。当启动它崩溃后几秒钟几乎没有打开对话框通知一些关于uder定义的断点,然后完全消失自己。有趣的是,当我只是重命名应用程序的可执行文件(例如App.exe到App_.exe),它工作正常。这是真的很奇怪的情况,因为我不改变任何东西,但可执行文件的名称。我有一个感觉,在框架中有一些注册会导致问题。我检查事件记录器,并说:

I have .Net application developed with C#, using C++ library, running on 64-bit Windows 7 OS but in 32 bit mode. Everything was fine until recently I started migration of this application to 64-bit mode. During work on this I returned to my 32-bit original version and now it does not work. When launching it crashes after several seconds barely opening dialog box notifying something about uder-defined breakpoint and then completely disappears on its own. What interesting is that when I just rename the application's executable (e.g. App.exe to App_.exe) it is working fine. It is really weird situation as I do not changed anything but name of the executable. I have a feeling there is some registration somewhere in Framework which causes a problem.I checked Event Logger and say this:

故障应用程序名称:MyApp.exe,版本:1.0 .0.0,时间戳:0x5310c171
错误模块名称:ntdll.dll中,版本:6.1.7601.18229,时间戳:0x51fb1072
异常代码:0x80000003
故障抵消:0x0001000c
断裂作用进程ID:0x%9
故障应用程序启动时间:0x%10
故障应用程序路径:%11
故障模块路径:%12

Faulting application name: MyApp.exe, version: 1.0.0.0, time stamp: 0x5310c171 Faulting module name: ntdll.dll, version: 6.1.7601.18229, time stamp: 0x51fb1072 Exception code: 0x80000003 Fault offset: 0x0001000c Faulting process id: 0x%9 Faulting application start time: 0x%10 Faulting application path: %11 Faulting module path: %12

请帮助我。

推荐答案

我知道你的帖子已经过了一段时间,同样的问题,并找到一个解决方案:

I know it's been a while since your post, but I just ran into the same problem and found a solution :

我删除了在应用程序对应的注册表中的键:

I removed the key corresponding to the app in the registry :

\\ HK_LOCAL_MACIHNE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image文件执行选项\ [App.exe]

\HK_LOCAL_MACIHNE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\[App.exe]

希望它有帮助

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

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