views:

5494

answers:

14

When I try to do that I get the following error:

Changes to 64-bit applications are not allowed.

A: 

Oh btw, I found the following:

If you are debugging a 64-bit application and want to use Edit and Continue, you must change the target platform and compile the application as a 32-bit application. You can change this setting by opening the Project Properties and going to the Compile page. On that page, click Advanced Compile Options and change the Target CPU setting to x86 in the Advanced Compiler Settings dialog box. Link

But I dont see the Target CPU setting...

SilverViper
A: 

AFAIK Visual Studio Express does not come with 64bit support.

Rob Cooper
A: 

Apparently it does as it also shows as a 64bit application in task manager when I run it..

SilverViper
-1: It would have been better to edit your question than add another answer
Casebash
@Casebash Comments were not avaialable at the time of this question. If you're going to go crazy commenting and downvoting people for making answer-comments, PLEASE check the date of the question and, if its before Jan 1 2010, just move on. Also, you can FLAG an answer for mod attention; its usually better to do that. A mod will swing by, delete the answer and that's that. We don't have the ability to convert an answer into a comment, so these stand as-is.
Will
@Will: Will do that from now on
Casebash
@Case thanks. And thanks for caring.
Will
A: 

Strange, I am getting conflicting information.. MS says it does..

However, that error message clearly says otherwise..

Can you create a new 64bit application from scratch?

Rob Cooper
A: 

for what it's worth, devenv.exe is 32-bit. and targetting x86 makes it's 32-bit program anyway.

Darren Kopp
A: 

@Darren,

I think your missing the point, SilverViper is trying to work on a 64bit app.. You should still be able to compile 64bit code within the devenv..

@SilverViper

I'll check this out when I am home where I have access to VS2008.

Rob Cooper
oh no, i know that you can compile 64-bit code with it. I'm saying that since vs is 32-bit, it can't rebuild the new code (for edit/continue) and continue on where it left off, like it could in 32-bit because the next memory address could theoretically be > 32-bit addressable range.
Darren Kopp
A: 

It doesn't have to be a 64bit program, actually, I rather prefer it to be 32bit anyway since it is more like a utility and it should work on 32bit systems.

Also, I'm running Vista at 64bit. Maybe that has something to do with it?

@Rob Cooper: Now I think of it, I never had the chance of selecting either a 64bit or a 32bit application when creating the solution/project/application... And according to your link "64-Bit Debugging (X64)" is possible with MS VB2008 express edition.

SilverViper
+4  A: 
Wilka
If you are debugging, you have to stop before you can change these settings
Casebash
A: 

@wilka: I don't have the build tab.

SilverViper
A: 

Please see my first comment on this question, it's not there... Somehow... I can select Target framework though (2.0, 3.0 and 3.5), not that I see any use of that for this particular problem...

SilverViper
+10  A: 

You could try:

In Visual Basic 2008 Express Edition: Build menu > Configuration Manager...

Change Active solution platform: to "...", choose "x86", save the new platform.

Now the "x86" option is available in the Compile settings.

You may need to enable "Show advanced build configurations" first, in Tools > Options > Projects and Solutions > General

(from this post on MSDN forums)

Wilka
Changing the platform is not the solution in my view.
Mubashar Ahmad
Agreed, it does not provide a solution that enables Edit and Continue in a 64-bit solution and could be detrimental to those who intend to write 64-bit apps.
Toymakerii
A: 

@Wilka: That option wasn't available until I selected Tools > Options > Projects and Solutions > General and check "Show advanced build configurations". Though I found this hint from your MSDN link. So if you edit your comment, I can make it the accepted answer...

Thanks everybody!

SilverViper
+3  A: 

It's sucky that the answer is to the question

How do I enable Edit and Continue on a 64-bit application?

is

You can't.

Ian Boyd
+1  A: 

it works thank you so much

If you are debugging a 64-bit application and want to use Edit and Continue, you must change the target platform and compile the application as a 32-bit application. You can change this setting by opening the Project Properties and going to the Compile page. On that page, click Advanced Compile Options and change the Target CPU setting to x86 in the Advanced Compiler Settings dialog box.

Metin YILMAZ