Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 .NET C++:Wrong VA hint for p->dp->str (see inside)

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
Reset74 Posted - Feb 12 2014 : 1:55:44 PM
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;

2   L A T E S T    R E P L I E S    (Newest First)
sean Posted - Feb 26 2014 : 10:41:17 AM
case=80210 is fixed in build 2029
accord Posted - Feb 13 2014 : 2:46:11 PM
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.

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