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
 Serious Bug with CArray<> and IntelliSense
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

sebhad
Junior Member

Germany
14 Posts

Posted - Sep 06 2007 :  05:09:58 AM  Show Profile  Reply with Quote
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:

VA_X.dll file version 10.4.1626.1 built 2008.01.17
Licensed to:
VA X: [email protected] (6-user license) Support ends 2008.05.15
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;
E:\\C_Progs\\GP\\Inc;
E:\\C_Progs\\GP\\Libraries\\Include;

Other Includes:

Stable Source Directories:
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;


Edited by - sebhad on Sep 06 2007 07:31:13 AM

feline
Whole Tomato Software

United Kingdom
19020 Posts

Posted - Sep 06 2007 :  12:46:03 PM  Show Profile  Reply with Quote
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.

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

sebhad
Junior Member

Germany
14 Posts

Posted - Apr 24 2008 :  02:38:26 AM  Show Profile  Reply with Quote
A fix of this case would be very helpful for us. When do you think this case could be part of a new release?
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19020 Posts

Posted - Apr 24 2008 :  07:46:47 AM  Show Profile  Reply with Quote
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.

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

support
Whole Tomato Software

5566 Posts

Posted - Jul 14 2008 :  2:33:21 PM  Show Profile  Reply with Quote
case=1607 is fixed in build 1645

Whole Tomato Software, Inc.
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