Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 VS 2010, C# 4.0, fixed(...) expression problem
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

gbozoki
Ketchup Master

USA
70 Posts

Posted - Dec 29 2011 :  4:01:30 PM  Show Profile  Reply with Quote
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;

gbozoki
Ketchup Master

USA
70 Posts

Posted - Dec 30 2011 :  1:22:10 PM  Show Profile  Reply with Quote
The same issue is present in VS 2008, too.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19074 Posts

Posted - Dec 30 2011 :  3:49:41 PM  Show Profile  Reply with Quote
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.

zen is the art of being at one with the two'ness
Go to Top of Page

gbozoki
Ketchup Master

USA
70 Posts

Posted - Dec 31 2011 :  10:46:35 PM  Show Profile  Reply with Quote
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.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19074 Posts

Posted - Jan 02 2012 :  10:46:03 PM  Show Profile  Reply with Quote
Thank you for the update. I had hoped this would be fairly rare, so it is useful to know it is rather more common.

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000