Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Serious Bug with CArray<> and IntelliSense

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
sebhad Posted - Sep 06 2007 : 05:09:58 AM
I detected a serious bug when using the VAX-IntelliSense (the original IntelliSense lists nothing here).
The VAX parser seems to fail on the class symbol CCircuitInput which is uses for a CArray<> and exists as sub class in the two classes with the same name. If I rename the first occurence to CCircuitInputGeo the parser does it right. As well the method of the CNormalClass is listet right.

I think this is a heavy problem that should be fix as soon as possible. This error can be very confusing and we need the IntelliSense in this kind of use very often in our code.

Many thanks from Southern Germany.


[h-File]

//////////////////////////////////////////////////////////////////////////
// First class with internal class
class CTestDataGeo
{
protected:
	
	class CCircuitInput
	{
	public:
		int m_iLength;
	};

public:

	typedef CArray<CCircuitInput, CCircuitInput&> CArrayCircuitInput;

	//class CCircuitArray : public CArray<CCircuitInput, CCircuitInput&>
	class CCircuitArray : public CArrayCircuitInput
	{
	};

	class CNormalClass : public CCircuitInput
	{
	};

public:
	CCircuitArray m_Circuit;
};


//////////////////////////////////////////////////////////////////////////
// Second class with internal class
class CTestDataThermo
{
protected:

	class CCircuitInput
	{
	public:
		static int m_iTemperature;
	};

public:

	typedef CArray<CCircuitInput, CCircuitInput&> CArrayCircuitInput;

	//class CCircuitArray : public CArray<CCircuitInput, CCircuitInput&>
	class CCircuitArray : public CArrayCircuitInput
	{
	};

	class CNormalClass : public CCircuitInput
	{
	};

public:
	CCircuitArray m_Circuit;
};


void IntelliTest();


[cpp-File]

void IntelliTest()
{
	CTestDataGeo geo;
	CTestDataThermo thermo;

	geo.m_Circuit[0].| //will list m_iTemperature here what is wrong!!
	geo.m_Class.| //will list m_iLength here what is right.
	//thermo.m_Circuit[0].| //will list m_iTemperature what could be luck
}



VA_X.dll file version 10.3.1559.0 built 2007.07.06
Licensed to:
VA X: [email protected] (6-user license) Support ends 2008.05.15
VAOpsWin.dll version 1.3.2.4
VATE.dll version 1.0.5.8
DevEnv.exe version 7.10.3077.0
msenv.dll version 7.10.3077.0
Font: Courier New 13(Pixels)
Comctl32.dll version 5.82.2900.2982
Windows XP 5.1 Build 2600 Service Pack 2
Single processor

Platform: Win32
Stable Includes:
C:\\Programme\\Microsoft Visual Studio .NET 2003\\Vc7\\include;
C:\\Programme\\Microsoft Visual Studio .NET 2003\\Vc7\\atlmfc\\include;
C:\\Programme\\Microsoft Visual Studio .NET 2003\\Vc7\\PlatformSDK\\include\\prerelease;
C:\\Programme\\Microsoft Visual Studio .NET 2003\\Vc7\\PlatformSDK\\include;
C:\\Programme\\Microsoft Visual Studio .NET 2003\\SDK\\v1.1\\include;
[...]

Library Includes:
C:\\Programme\\Microsoft Visual Studio .NET 2003\\Vc7\\atlmfc\\src\\mfc;
C:\\Programme\\Microsoft Visual Studio .NET 2003\\Vc7\\atlmfc\\src\\atl;
C:\\Programme\\Microsoft Visual Studio .NET 2003\\Vc7\\crt\\src;

Other Includes:
4   L A T E S T    R E P L I E S    (Newest First)
support Posted - Jul 14 2008 : 2:33:21 PM
case=1607 is fixed in build 1645
feline Posted - Apr 24 2008 : 07:46:47 AM
Unfortunately I do not have an estimate of when this will be fixed, but I have just increased the priority on this bug for you. Hopefully this will help.
sebhad Posted - Apr 24 2008 : 02:38:26 AM
A fix of this case would be very helpful for us. When do you think this case could be part of a new release?
feline Posted - Sep 06 2007 : 12:46:03 PM
I am seeing the same problem here. I believe this is covered by:

case=1607

As you have found the current solution is to rename something, so VA can figure out what is going on more reliably.

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