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
 1530 VAX underlines elements too far from base
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Heppi
New Member

9 Posts

Posted - Jul 21 2006 :  03:15:35 AM  Show Profile  Reply with Quote
Hello,
I found some weird underline "feature".

Given the following class structure:

class CxxxFileState 
{
public:
 virtual void Consume(CxxxFileContext& _context);
 virtual int GetMinimumSizeToRead(CxxxFileContext& _context);
protected:
 void ChangeState(CxxxFileContext& _context, CxxxFileState* _state);
 bool CheckMinimumRead(CxxxFileContext& _context);
};
class Record : public CxxxFileState
{
public:
 virtual void Consume(CxxxFileContext& _context);
 virtual int GetMinimumSizeToRead(CxxxFileContext& _context);
};
class ProgramInfo : public Record
{
public:
 virtual void Consume(CxxxFileContext& _context);
};
void ProgramInfo::Consume(CxxxFileContext& _context)
{
 if (!CheckMinimumRead(_context))
  return;
 STR_SEND_BUFFER* pHead = _context.GetHeadBuf();
 BYTE* pProg = _context.GetBuf();
 _context.Writer().ProcessProgramInfo(pHead, pProg, GetMinimumSizeToRead(_context) );
 ChangeState(_context, Header::State());
}

Some elements left out....
In ProgramInfo::Consume CheckMinimumRead, GetMinimumSizeToRead and ChangeState are underlined. In Record::Consume where these functions are also used, they are not.

Heppi
VS2005 VAX1530 and below

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Jul 22 2006 :  12:27:22 PM  Show Profile  Reply with Quote
pasting this code into a header file in an existing C++ project, using VS2005 and VA 1530 i am not seeing these problems:



if you paste the code into a new file, or even into a new project, do you still have this inconsistent underlining? i am wondering if something further up the file is confusing VA.

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

Heppi
New Member

9 Posts

Posted - Jul 24 2006 :  02:32:40 AM  Show Profile  Reply with Quote
Unfortunately,
if pasting this code fragment into a new file project I get the same result like you.
I omitted some declarations and (!important) the surrounding namespace.

Put a namespace around it and you see the underlining feature.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Jul 24 2006 :  7:02:17 PM  Show Profile  Reply with Quote
confirmed. that is very strange. i was able to simply the code sample a bit, and i still see the same effect.

case=1791

zen is the art of being at one with the two'ness
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