intellisense bug - by magsmsdn

Status : 

  Won't Fix<br /><br />
		Due to several factors the product team decided to focus its efforts on other items.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.

Sign in
to vote
ID 614325 Comments
Status Closed Workarounds
Type Bug Repros 0
Opened 10/17/2010 12:27:22 AM
Access Restriction Public


the following C++ statement 
	__declspec(align(4096)) BYTE very_large_byte_array[1100000000];

results in the following error
		33	IntelliSense: invalid alignment specifier value

This worked in vs2008
Sign in to post a comment.
Posted by Jamie [MSFT] on 11/2/2010 at 3:55 PM
Hello magss,

We use separate compilers for IntelliSense and build and, unfortunately, they disagree on the upper limit for alignment. (It is implementation-defined behavior.) We realize this is annoying but we won't be able to fix it for this next release of Visual Studio.

As for your other question, I was able to add the Registers command to the Debug toolbar by clicking "Add or Remove Buttons" on the Debug toolbar, selecting "Customize...", "Add Command...", "Debug", "Registers".

Alternatively, you can access the Registers window, while debugging, by selecting Debug -> Windows -> Registers. The default keybinding is ALT+5.

Thanks again for reporting this issue.

Jamie Eckman
Visual C++ Team
Posted by magsmsdn on 10/23/2010 at 3:04 PM
On a separate issue; I'm trying to find the "registers window". I go to tools, customise, commands, menu bar and then select "debug|windows" and then do an "add command", select the debug, but there is no "registers window" option!!

    Theoptions go from "restart" to "run to cursor"!!! Where is the "registers window" option???
Posted by magsmsdn on 10/23/2010 at 2:57 PM
I'm very surprised you have trouble re-creating this problem; or perhaps you haven't really tried to do so!!!

I added the __declspec(align(4096)) BYTE very_large_byte_array[1100000000]; statement to your Concrt samples program and I got the same error!!!

Posted by Microsoft on 10/21/2010 at 2:53 AM
Thanks again for your feedback.
Is it possible to upload the repro project to our workspace?

Posted by magsmsdn on 10/18/2010 at 4:19 PM
If it helps in solving this bug, an align(128) works; anything higher than 128 generates the error. I know that it compiled and executed correctly in VS2008 as the array was located on a correct address boudary.

The solution is large, propriatery and includes both managed and unmanaged projects.
Posted by Microsoft on 10/17/2010 at 8:49 PM
Thank you for reporting this issue.
Could you please attach your project to help us reproduce this issue?
Posted by Microsoft on 10/17/2010 at 1:25 AM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(