在 VS2008 中在 Windows x64 上调试 x86 .NET 应用程序 [英] Debugging x86 .NET application on Windows x64 in VS2008

查看:38
本文介绍了在 VS2008 中在 Windows x64 上调试 x86 .NET 应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是 x64 版本的 Windows 7.我的应用程序使用了一些无法在 x64 上下文中加载的 COM 服务器(通常是本机 x86 COM 服务器).所以我决定使用 WOW 将它作为 x86 应用程序运行,所以我将平台目标设置为 x86.

I use the x64 version of Windows 7. My application use some COM servers (usual native x86 COM Servers) that can't be loaded in x64 context. So I decided run it as a x86 application using WOW so I set platform target as x86.

但是当我尝试调试它时,Visual Studio 2008 调试器开始为所有源文件显示诸如源文件不同...."之类的消息.这种行为的原因是什么?这个问题诞生于那里 "源文件不一样...."Visual Studio 2008 中的消息是在 x64 Windows 上调试 x32 应用程序的结果

But Visual Studio 2008 debugger started to show messages like "The source file is different...." for all source files when I try debug it. What is reason for this behaviour? This question was born there "The source file is different...." message in Visual Studio 2008 is result of debugging x32 apps on x64 Windows

更新:我清理了解决方案,重建了解决方案,删除了 obj、bin 等文件夹,重新启动了计算机,重新安装了 Visual Studio ......那么,还有什么问题?

Update: I cleaned solution, rebuilt solution, removed obj, bin and etc. folders, restarted computer, reinstalled Visual Studio... So, what else could be the problem?

Update2:如果您创建新的 Windows 应用程序项目并将目标平台更改为 x86,您将遇到此问题.但是如果你从项目中删除Settings1.settings,麻烦就会消除!!.有什么想法吗?

Update2: If you create new Windows Application project and change target platform to x86 you will see this trouble. But if you delete Settings1.settings from project the trouble will be eliminated!!. Any Idea?

Update3:http://social.msdn.microsoft.com/Forums/en-US/vsdebug/thread/bc297668-65b4-46e8-969e-c7a6340d33b6

推荐答案

Windows 7 默认为 VS 2008 设置 Windows Xp sp 3 兼容模式.更改对 Windows Vista SP2 模式的兼容性已解决问题.

Windows 7 sets Windows Xp sp 3 compatibility mode for VS 2008 by default. Changing compatibility to Windows Vista SP2 mode have solved trouble.

这篇关于在 VS2008 中在 Windows x64 上调试 x86 .NET 应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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