使用visual studio 2012进行调试时,MFC可执行文件将退出而不会出现任何错误 [英] MFC executable gets exit without any error while debugging with visual studio 2012

查看:74
本文介绍了使用visual studio 2012进行调试时,MFC可执行文件将退出而不会出现任何错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在为一个第三方可执行文件开发一些附加代码作为dll。为了使用第三方exe调试我的DLL,我在调试属性中提供可执行路径。

项目属性





除非他们发布新版本的可执行文件,否则一切正常。他们发布的新版本的可执行文件可能是更新的Visual Studio版本或.NET框架或带有新组件的新线程。使用我的DLL解决方案运行exe时使用新的可执行文件,exe将停止并显示以下信息:

I am currently developing some addition code as dll for one third party executable. For debug of my DLL using third party exe, I am providing executable path in debugging property.
Project property


All things are working properly unless they release new version of executable. They released new version of executable may be with updated Visual studio version or .NET framework or new thread with new component. With new executable when I run exe from my DLL solution, exe gets stop with following information:

The thread 0x2778 has exited with code 255 (0xff).
The thread 0x1330 has exited with code 255 (0xff).
The thread 0x207c has exited with code 255 (0xff).
The thread 0x10e8 has exited with code 255 (0xff).
The thread 0x874 has exited with code 255 (0xff).
The thread 0x2788 has exited with code 255 (0xff).
The thread 0xef4 has exited with code 255 (0xff).
The thread 0x2548 has exited with code 255 (0xff).
The program '[8004] abc.exe' has exited with code 255 (0xff).





我最后2个小时的google给了我以下链接但不是富有成效地提供解决方案。



请提供有关exe停止原因的更多信息?



我尝试了什么:



program.exe:Native'退出代码255(0xff) [ ^ ]



Native'已退出代码3(0x3) [ ^ ]

解决方案

使用一些带有exe的dll应该来自相同版本的Visual Studio。所以使用与dll构建相同的VS.



一分钟的Google引导我去了这样的错误255原因。它也可能是一些链接不匹配(静态/动态)。也许对方改变了它。



发送你的文件并征求意见..
Using some dlls with an exe should be from the same version of Visual Studio. So use the same VS as the dlls are build on.

One minute of Google led my to such error 255 cause. It also can be some linking mismatch (static/dynamic). Maybe the other party changed it.

Send them your files and asked for comments..


这篇关于使用visual studio 2012进行调试时,MFC可执行文件将退出而不会出现任何错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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