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

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

问题描述

我使用的是Windows 7 x64版本我的应用程序中使用某些COM服务器(通常的原生x86 COM服务器)无法在64位环境中加载。所以我决定使用 WOW 所以将目标平台为x86的运行它作为一个86的应用程序。

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中的调试器开始显示消息,如源文件是不同的......所有的源文件时,我尝试调试。是什么原因,这种行为?这个问题在那里出生<一href="http://stackoverflow.com/questions/2013943/the-source-file-is-different-message-in-visual-studio-2008-is-result-of-deb">"The源文件是不同的......&QUOT;在Visual Studio 2008中的消息是调试的X32应用程序在x64的Windows

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,斌等文件夹,重新启动电脑,重新安装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 :<一href="http://social.msdn.microsoft.com/Forums/en-US/vsdebug/thread/bc297668-65b4-46e8-969e-c7a6340d33b6" rel="nofollow">http://social.msdn.microsoft.com/Forums/en-US/vsdebug/thread/bc297668-65b4-46e8-969e-c7a6340d33b6

推荐答案

Windows 7中设置的Windows XP SP 3兼容模式VS 2008默认情况下。更改兼容于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.

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

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