Home Dashboard Directory Help
Search

intellisense bug by magsmsdn


Status: 

Closed
 as Won't Fix Help for as Won't Fix


2
0
Sign in
to vote
Type: Bug
ID: 614325
Opened: 10/17/2010 12:27:22 AM
Access Restriction: Public
0
Workaround(s)
view
0
User(s) can reproduce this bug

Description

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
Details
Sign in to post a comment.
Posted by Microsoft 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?
https://sftasia.one.microsoft.com/choosetransfer.aspx?key=64b8c383-9225-4638-9247-8fe73b6f6790
Password:zDyRp0LOnmJU5

Thanks!
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(http://support.microsoft.com)
Sign in to post a workaround.