Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 VS 2010, C# 4.0, fixed(...) expression problem

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
gbozoki Posted - Dec 29 2011 : 4:01:30 PM
In VS 2010 VAX 1862 seems to fail to recognize symbols in C# when used inside a fixed() expression. The following snippet recreates the problem:

private void SomeFunc ()
{
    byte[] byData = new byte[120];

    fixed ( byte* pData = byData )
    {
        *pData = 1;
    }
}


This code is in a .NET 4.0 .dll project. Is there a workaround for this?

Here's my system info:
VA_X.dll file version 10.6.1862.0 built 2011.12.13
Licensed to:
VA X: gbozoki@<email removed> (1-user license) Support ends 2012.02.12
DevEnv.exe version 10.0.30319.1 Professional
msenv.dll version 10.0.30319.1
Comctl32.dll version 6.0.2900.6028
Windows XP 5.1 Build 2600 Service Pack 3
2 processors (x86)
Language info: 1252, 0x409

Platform: Win32
Stable Includes:
C:\\Program Files\\Microsoft Visual Studio 10.0\\VC\\include;
C:\\Program Files\\Microsoft Visual Studio 10.0\\VC\\atlmfc\\include;
C:\\Program Files\\Microsoft SDKs\\Windows\\v7.0A\\include;
C:\\Program Files\\Microsoft SDKs\\Windows\\v7.0A\\include;

Other Includes:

Stable Source Directories:
C:\\Program Files\\Microsoft Visual Studio 10.0\\VC\\atlmfc\\src\\mfc;
C:\\Program Files\\Microsoft Visual Studio 10.0\\VC\\atlmfc\\src\\mfcm;
C:\\Program Files\\Microsoft Visual Studio 10.0\\VC\\atlmfc\\src\\atl;
C:\\Program Files\\Microsoft Visual Studio 10.0\\VC\\crt\\src;
4   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Jan 02 2012 : 10:46:03 PM
Thank you for the update. I had hoped this would be fairly rare, so it is useful to know it is rather more common.
gbozoki Posted - Dec 31 2011 : 10:46:35 PM
I actually do have quite a bit of this, that's how I ran into it. In most cases I was able to use the VS refactor instead of VAX but I'd prefer to use only one tool (since they have different shortcut keys.)

Happy new year to you guys.
feline Posted - Dec 30 2011 : 3:49:41 PM
I am seeing the same effect here. Thank you for the clear description.

case=63687

This is a limitation in our parser, so it makes sense that you are seeing this in different IDE's. Hopefully you don't have to much code like this, so this is not to big a problem.
gbozoki Posted - Dec 30 2011 : 1:22:10 PM
The same issue is present in VS 2008, too.

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000