二进制文件崩溃,使用VS2013平台工具集Visual Studio 2013编译 - Windows XP(v120_xp) [英] Binaries are crashing which are compiled with VS2013 platform tool set visual studio 2013 - windows XP (v120_xp)
问题描述
嗨朋友
我有使用Visual Studio 2010编译并且在Windows Server 2003中正常工作的二进制文件列表
但是当我用Visual Studion 2013编译平台工具集时 - > Visual Studio 2013 - Windows XP(v120_xp)和二进制文件在Windows Server 2003上崩溃。
并非在所有Windows Server 2003上都发生过这种情况。 br />
当我使用调试版本创建内存转储时,它指出源代码中的某些行,其中二进制文件正在崩溃,这不是一个简单的算术计算,如
int a = c + d;
根据二进制日志文件的观察结果,二进制文件开始成功执行并在中间崩溃执行。
请指导我如何解决这个问题?
什么我试过了:
1.用windb分析
2.用应用验证工具分析
Hi Friends
I have list of binaries which are compiled with Visual Studio 2010 and working fine with Windows Server 2003
but when I compiled with Visual Studion 2013 with platform tool set -> Visual Studio 2013 - Windows XP (v120_xp) and binaries are getting crashing at Windows Server 2003.
It is not happening on all Windows Server 2003 but on few servers .
When I created memory dump with debug build, it point out some line in source code where binaries are getting crash is nothing a simple arithmetic calculation like
int a = c+d ;
As per observation from binaries log file, binaries started execution successfully and crashed mid of the execution .
Please guide me what could I do to fix this issue ?
What I have tried:
1. analysed with windb
2. analysed with application verifier tool
推荐答案
我认为VS 2013与XP不兼容。尝试降低一些编译器设置,如_WINVER_宏。
阅读 Visual Studio 2013兼容性,专注于精美打印的附加功能。
解决方案:使用像VS 2010这样的旧版本以Windows XP为目标。
I think that is incompatibility of the VS 2013 to XP. Try to lower some compiler settings like the _WINVER_ macro.
Read the Visual Studio 2013 Compatibility and focus on the fine-printed additions.
Solution: use an older version like VS 2010 to target Windows XP.
这篇关于二进制文件崩溃,使用VS2013平台工具集Visual Studio 2013编译 - Windows XP(v120_xp)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!