Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 1532: Find References returns incorrect results

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
hwatson Posted - Aug 24 2006 : 1:59:09 PM
I'm using 1532 with VC++ .NET 7.1.

I initiated Find References from the definition of a class member function "void SomeClass::Reset()". I think this function is only called from one location. Find References did find the declaration, definition, and single reference. However, it erroneously found six other references, all calls to functions called "Reset" in other contexts. Some of these other contexts included parameters too.

A quick search throughout the solution for "Reset()" returns 264 matches (using match case and whole word only), so Find References is clearly not returning all calls to "Reset()".

Is there anything I can do to track down why VAX is including these erroneous results? I already tried rebuilding my symbol database.

<EDIT>

I just tried Find References for a private member function of a different class. This function name only exists within this class. It found the declaration and definition, but not the reference. Then I searched for the function and tried Find References from where the function is called. Then it found only the reference, and not the declaration nor definition.

So, Find References is generally unreliable for me.

</EDIT>
1   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Aug 26 2006 : 6:27:07 PM
i use find references a LOT, and for me it is very reliable indeed. are you using C++?

for these cases, if you look in OFIW are all of the code files involved listed? if VA does not know about the files that define or use the member function then it is not going to know to search inside of them.

are these basic C++ classes? or are you doing clever things with template classes, virtual base classes, etc? i am searching for anything that might explain the problems.

do you use a lot of #define's to reference the classes via other names?
iterators across STL collections of the classes?

any chance of sample code that shows the problems you are having? i know this is a long shot, but it is always worth asking.

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