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
 Possible problem with C++ namespaces
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

teknogrebo
New Member

5 Posts

Posted - Apr 26 2005 :  09:50:57 AM  Show Profile
First of all I'ld like to say that I have been using Visual Assist for ages and love it. Couldn't work without it :)

I've just discovered the cause of something that has been annoying me for some time. (But not enough to look into it before).

In the project I work with, someone added a namespace called 'details'. Nice naming there, but we won't get into that. Now, if ever call a local variable 'details', VA will give me all the options from the namespace rather than the members of the class that details is an instance of. I don't know if this is intended behaviour or not, but it strikes me that namespace members should only be displayed when the namespace is qualified. Any comments?

Also, I have unfortunately noticed one hell of a slow down in recent updates. I don't know if that is more to do with the growth of the project (currently at about 800k lines of code) or not. Any thoughts?

Cheers for any info, and keep up the good work :)

teknogrebo
New Member

5 Posts

Posted - Apr 26 2005 :  10:06:18 AM  Show Profile
Whoops, forgot this information:

Running Visual Studio 6

VA_X.dll file version 10.0.1278.0
Licensed to:
VA X: [email protected] (1-user license) Support ends 2005.07.14
VAOpsWin.dll version 1.2.0.4
MSDev.exe version 6.0.8168.1
Devshl.dll version 6.0.8798.0
Devedit.pkg version 6.0.8447.0
Font: Courier -13(Pixels)
Comctl32.dll version 5.81.3502.6601
WindowsNT 5.0 Build 2195 Service Pack 4
Single processor

Platform: Win32 (x86)
Stable Includes:
C:\\Program Files\\Microsoft DirectX 9.0 SDK (October 2004)\\Include;
C:\\DX90SDK\\INCLUDE;
C:\\Program Files\\Microsoft Visual Studio\\VC98\\INCLUDE;
C:\\Program Files\\Microsoft Visual Studio\\VC98\\MFC\\INCLUDE;
C:\\Program Files\\Microsoft Visual Studio\\VC98\\ATL\\INCLUDE;

Library Includes:
C:\\Program Files\\Microsoft Visual Studio\\VC98\\MFC\\SRC;
C:\\Program Files\\Microsoft Visual Studio\\VC98\\MFC\\INCLUDE;
C:\\Program Files\\Microsoft Visual Studio\\VC98\\ATL\\INCLUDE;
C:\\Program Files\\Microsoft Visual Studio\\VC98\\CRT\\SRC;

Other Includes:

Go to Top of Page

WannabeeDeveloper
Tomato Guru

Germany
775 Posts

Posted - Apr 26 2005 :  2:55:13 PM  Show Profile
Did you try the latest Build (1301) already?
Maybe it's working better for you...

Available here.

Go to Top of Page

teknogrebo
New Member

5 Posts

Posted - Apr 27 2005 :  04:11:00 AM  Show Profile
I hadn't installed 1301, but I have now, and I still get the same problem with the namespace thing. :(
Go to Top of Page

teknogrebo
New Member

5 Posts

Posted - Apr 28 2005 :  04:52:29 AM  Show Profile
I just did a little test with this code:

namespace bar
{
int a;
}

struct foo
{
int b;
};

int main(int argc, char *argv[])
{
foo bar;

bar.a;

return 0;
}

When typing the '.' after bar, VAX actually gives me a choice between a, and b. This is also invalid as 'a' isn't a member of struct foo. (At least it shows b though, which in my real world app, it doesn't.

Just thought you guys might like to know. :)
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Apr 28 2005 :  6:05:22 PM  Show Profile
thank you for the test case, it makes my life a lot easier

case=590

i can reproduce this in both VC6 and .NET 2003. interestingly in .NET 2003 turning on the VA option

VA Options -> text editor -> listboxes -> get content from default intellisense

fixes the suggestions, so that only b is suggested. it is possible this will help, at least some of the time, in VC6.


i am not sure what to say about the slow down though. it certainly is not a general problem with VA. has anything else changed recently that could help to point us in the right direction?

what sort of slow down are you experiencing? slower to type? suggestions taking longer to appear? longer for the IDE to load? or something else?

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

Stephen
Tomato Guru

United Kingdom
781 Posts

Posted - Apr 29 2005 :  05:27:19 AM  Show Profile
Re slow down: deleting the project's ncb file often fixes this.

Stephen Turner
ClickTracks http://www.clicktracks.com/
Winner: ClickZ's Best Web Analytics Tool 2003 & 2004
Go to Top of Page

teknogrebo
New Member

5 Posts

Posted - Apr 29 2005 :  07:37:46 AM  Show Profile
Okay. I left the intellisense box unchecked as I thought the default intellisense was rubbish. (It was the prime motivating force to using VA in the first place). Unfortunately though, although it fixes my test case, in my real project if I name anything 'details', I now get no suggestions at all. (Pretty much intellisense being rubbish I believe). I wish I could give you some example code from the project, but I think I'ld probably get sacked for doing so :)

Re: slowdown - Deleting the ncb has helped, it's gone from 14meg to 4meg so something wasn't right. It was the typing speed that got affected, although it is still noticeably slower in large files (> 4000 loc) than in small files. It's still faster to type if I disable VA, but it's not crippling anymore.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - May 02 2005 :  06:45:15 AM  Show Profile
delete the ncb file and make a new empty file with the same name, then mark this as read only

no more ncb files being created, so no problems with them. i am not sure what they actually do that is useful, since deleting them never seems to cause a problem.

i did once see a slowdown problem with VA in a large file, but the file in question was over 20,000 lines long. is this slow down proportional to the size of the file? also can you try disabling VA and see if that fixes the speed problem?

be careful disabling and re-enabling VA in VC6! due to the IDE this can make the IDE crash.

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