Solved

Migrating from VS2008 x86 to VS2010 x64, what problems can I expect?

Posted on 2010-09-16
4
930 Views
Last Modified: 2013-11-29
We have become very tired of the memory limitations of the x86 platform for development.  We currently use Vista 32bit,  with 4GB RAM, but still I have memory problems with VS2008, and VS2010 runs out of memory even faster.  So we want to switch up to using Windows 7 x64, with VS2010.

We have already migrated the applications from VS2008 to VS2010, and that was relatively painless.  However, I am concerned about building our 32 bit apps on the 64 bit platform.  I briefly tried this once before with Vista x64 and VS2008 x64, but had some build problems. So gave up and reverted to x86, and the memory limitations.

I am sure there are many people out there using Windows 7 64, and VS2010 64 for developeing 32 bit apps.  I just wondered if any of you guys cold give me some tips, things I must do, things I should not do, etc. To make this transistion as painless as possible.


0
Comment
Question by:townsma
  • 2
  • 2
4 Comments
 
LVL 10

Expert Comment

by:joriszwaenepoel
Comment Utility
Usually, when developing .NET applications, you build them for "Any CPU" which means it will run as a 32-bit application on a 32-bit OS, and as a 64-bit application on a 64-bit OS.  The version of the OS where you build the .NET application does not matter.

Only when you are referenceing specific 32-bit dll's (third party) you have to build your app as a 32-bits app.  This is still possible if you run Visual Studio on a 64 bits OS.  
0
 
LVL 6

Author Comment

by:townsma
Comment Utility
Thanks for the reply.   I understand we usualy build with Any CPU, and that this will build 32 and 64 bit versions.  

Can I ask if you currently build 32 bit apps on a 64 bit platform?  The reason I ask, is I understand the theory, however, when dealing with Microsoft platforms, as I have found to my disappointment, the theory and practice are seldom the same, and usually some workarounds etc. are required to make it work.

Our applications do use several 3rd party assemblies, which I assume are all 32 bit, so if this is the case, and the theory holds true, then I should just need to set all my assemblies to build for the 32 bit platform only, and all will be well with the world, and I will not develop any more grey hairs...
0
 
LVL 10

Accepted Solution

by:
joriszwaenepoel earned 500 total points
Comment Utility
I still develop with VS2008, but on a 64-bits OS.
In a recent project, the app needed to be a 32-bits app, because a third party dll that I needed to reference was 32-bits, so I modified the settings to build only for x86, and it worked perfectly.

I haven't tried this with VS2010, but I would expect a lot of problems here.  A lot of developers are using 64-bits machines today, and I haven't heard anyone complain about this kind of problems.
0
 
LVL 6

Author Closing Comment

by:townsma
Comment Utility
I have awarded a B as I was hoping for more insight into the real issues I might face, ratehr that the text book answer which I had already obtained.

But thanks for the reply.
0

Featured Post

Free book by J.Peter Bruzzese, Microsoft MVP

Are you using Office 365? Trying to set up email signatures but you’re struggling with transport rules and connectors? Let renowned Microsoft MVP J.Peter Bruzzese show you how in this exclusive e-book on Office 365 email signatures. Better yet, it’s free!

Join & Write a Comment

A Bare Metal Image backup allows for the restore of an entire system to a similar or dissimilar hardware. They are highly useful for migrations and disaster recovery. Bare Metal Image backups support Full and Incremental backups. Differential backup…
Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now