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
 1278: Inner class crash
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

King3D
Senior Member

29 Posts

Posted - Oct 25 2004 :  09:40:13 AM  Show Profile
8<---aclass.h-------
class A
{
public:
void testA();
class B
};
------------------>8


8<---aclass.cpp-------
void A::testA()
{
}

class A::B
{
public:
void testB();
};

void A::B::testB()
{
}

void foo()
{
A::B b; // VAX offers no help.
b.testB(); // VAX offers no help or crashes.
}
------------------>8

LarryLeonard
Tomato Guru

USA
1041 Posts

Posted - Oct 25 2004 :  09:59:52 AM  Show Profile
After pasting this in (without reading it) to try to reproduce it quickly, I realized it must be C# ... oh well, maybe someone else can test this...
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Oct 25 2004 :  12:18:43 PM  Show Profile
Example is C/C++ since files mentioned are a header and cpp.

We confirmed VA X does not support your use of nested classes, even when A::B is declared in aclass.h.

As for the crash, we suspect your NCB file is corrupt. The corruption is a common IDE probem. Try exiting your IDE and deleting the NCB files associated with your projects.
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Oct 30 2004 :  7:44:37 PM  Show Profile
We have confirmed the limitation of VA X. Class B must be defined inside class A. To make ourselves feel better, we point out the limitation exists with default IntelliSense.

class A
{
public:
void testA();
class B
{
public:
void testB();
};
};
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000