.net application crashes unless renamed

强颜欢笑 提交于 2019-12-23 04:52:11

问题


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:

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

Please help me with this.


回答1:


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 File Execution Options\[App.exe]

Hope it helps



来源:https://stackoverflow.com/questions/22103044/net-application-crashes-unless-renamed

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!