开发者

Debugging on 64bit Machine While having 32bit Visual Studio

I would like to know that If my console Application is

  • running in debug mode attached in
  • Visual Studio 2008 of 32bit
  • while my machine is 64bit with Win Srv 2008 64bit
  • and .Net framework 64 is installed as well

Is my application is working in 64bi开发者_StackOverflow社区t or not if not how can i make it run in 64bit?


Yes, if you compiled the application with target "Any CPU" (or "x64"), then it will run in 64 bit mode.

Visual Studio only comes in a 32 bit version, but it doesn't have any problem debugging a 64 bit application.


If you're compiling to the "Any CPU" target then your app is running in 64bit.
One way you can tell is that while debugging "Edit and continue" is disabled for 64bit apps, and you'll see that message if you try it.

So, some facts
The debugger can debug 64bit apps. VS2008 only comes in 32bit, there is no 64bit version.

You can specifically target the 64 CPU by changing your Build Target to 64bit, your application will no longer work on 32bit CPU's.

You can specifically target 32bit CPUs, and your application will continue to work on 64bit machines.

Also, when building, it's actually only really important what target your Exe's are compiled to. DLL's compiled to Any CPU will take their platform lead from what ever the loading exe is.

Hope this helps.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜