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
 .NET C++:Wrong VA hint for p->dp->str (see inside)
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Reset74
Starting Member

1 Posts

Posted - Feb 12 2014 :  1:55:44 PM  Show Profile  Reply with Quote
Hello!

Could you please fix one very annoying bug in VA which is there since VA 1906 or some later version?

Thank you.
Alex

//------------------------
ref class PtrS
{
public:
String^ str;
PtrS() { str=""; };
};

//------------------------
ref class PtrP
{
public:
PtrS^ dp;
PtrP() { dp=gcnew PtrS(); };
};

//------------------------
void test(void)
{
PtrP^ p=gcnew PtrP();
p->dp.str; // <------------------ dot suggested by VA is wrong here! should be ->
}

//------------------------
C++ .NET project

//------------------------
Microsoft Visual Studio 2010
Version 10.0.40219.1 SP1Rel
Microsoft .NET Framework
Version 4.0.30319 SP1Rel

Installed Version: Ultimate


//------------------------
VA info:
License: (*legal* 4-user license) Support ends 2014.06.03
VA_X.dll file version 10.8.2023.0 built 2013.12.20
DevEnv.exe version 10.0.40219.1 Ultimate
msenv.dll version 10.0.40219.1
Comctl32.dll version 6.0.2900.6028
Windows XP 5.1 Build 2600 Service Pack 3
4 processors (x86)
Language info: 1251, 0x419

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

Other Includes:

Stable Source Directories:
C:\\Program Files\\Microsoft Visual Studio 10.0\\VC\\crt\\src;
C:\\Program Files\\Microsoft Visual Studio 10.0\\VC\\atlmfc\\src\\atl;
C:\\Program Files\\Microsoft Visual Studio 10.0\\VC\\atlmfc\\src\\mfcm;
C:\\Program Files\\Microsoft Visual Studio 10.0\\VC\\atlmfc\\src\\mfc;

accord
Whole Tomato Software

United Kingdom
3163 Posts

Posted - Feb 13 2014 :  2:46:11 PM  Show Profile  Reply with Quote
I have put in a bug report for this since it works for simple handles, but not for handles pointing to another handle:

case=80210

Thank you for using a complete source to demonstrate.

I had to change the last line to

(p->dp->str);

to be able to compile, though.
Go to Top of Page

sean
Whole Tomato Software

USA
2640 Posts

Posted - Feb 26 2014 :  10:41:17 AM  Show Profile  Reply with Quote
case=80210 is fixed in build 2029
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2019 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000