Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Symbol table corruption

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
brain Posted - Dec 01 2006 : 08:28:21 AM
Hi!

I found a strange corruption of the symbol database.

Steps to reproduce:
1. Create a simple project with only one cpp file, and only this contect:

void qqqq() {}
void QQQQ() {}

int main()
{

return 0;
}

2. In main before return create a syntax error like this:
xxx
return 0;

3. Minimize Visual Studio, or switch to another application, or just press reparse file.

4. Delete the xxx line, so you have a correct code again

5. Rename the qqqq() function to xxxx() manually

6. swtich to another application os minimize visual studio again, or just reparse the file

7. go back to main() and try to enter a function name:
xx<complete-word>
or
qq<complete-word>

The result is the xxxx() is not in the list while qqqq is still in there.

Even if I restart the ide qqqq() remains among the completion suggestions. The strange thing is that find symbol show the correct results, and suggestion listbox (the one with the ?) shows the correct symbols.

I have to rebuild symbol database, to make it working correctly again.
These steps are common during programing, if you use a browser to check something on the msdn while you left incorrect code in the editor.

I have VS2005 and version 1540
7   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Dec 07 2006 : 5:54:36 PM
case=4004
brain Posted - Dec 05 2006 : 04:39:22 AM
Sorry I was wrong. Restarting the Ide solves the xxxx() problem, but qqqq() remains in the completion list even after restart.
So if you type qq<complete-word> you'll see it.
I have only one instance of msvc running, and no other plugins.
feline Posted - Dec 04 2006 : 1:27:10 PM
Adding in the rebuild symbol databases, along with the required IDE restart between steps 1 and 2 gets me a bit closer to what you are seeing, but only a bit.

While this is happening if I sit on a blank line, move in one tab and simply press CTRL-SPACE then I get a completion listbox listing 3 items, the 3 known functions in the file, and it is the correct 3 functions.

Typing "xx" and then using CTRL-SPACE and there is no sign of the function xxxx() in the list. However after restarting the IDE xxxx() is turning up as expected.

Are you sure restarting the IDE does not help?
Do you have any other IDE's open when you perform this test?
Do you have any other plugin's installed?

I am not seeing anything odd in your system information either.
brain Posted - Dec 04 2006 : 10:32:36 AM
-- Info ---

VA_X.dll file version 10.3.1541.0 built 2006.11.20
Licensed to:
VA X: [email protected] (7-user license) Support ends 2007.09.26
VAOpsWin.dll version 1.3.3.8
VATE.dll version 1.0.5.0
DevEnv.exe version 8.0.50727.42
msenv.dll version 8.0.50727.42
Font: Lucida Console 13(Pixels)
Comctl32.dll version 6.0.2900.2982
Windows XP 5.1 Build 2600 Service Pack 2
2 processors

Platform: Win32
Stable Includes:
C:\\Program Files\\Microsoft Visual Studio 8\\VC\\include;
C:\\Program Files\\Microsoft Visual Studio 8\\VC\\atlmfc\\include;
C:\\Program Files\\Microsoft Visual Studio 8\\VC\\PlatformSDK\\include;
C:\\Program Files\\Microsoft Visual Studio 8\\SDK\\v2.0\\include;

Library Includes:
C:\\Program Files\\Microsoft Visual Studio 8\\VC\\atlmfc\\src\\mfc;
C:\\Program Files\\Microsoft Visual Studio 8\\VC\\atlmfc\\src\\mfcm;
C:\\Program Files\\Microsoft Visual Studio 8\\VC\\atlmfc\\src\\atl;
C:\\Program Files\\Microsoft Visual Studio 8\\VC\\crt\\src;

Other Includes:

--- Info ---

Strange. I can repoduce it anytime. Make sure you rebuild the symbol table database before step 2.
Could it be a problem, that I don't uninstall VAX before I install the new version?


feline Posted - Dec 04 2006 : 09:40:07 AM
I have tried turning off suggestion listboxes, but xxxx() is still in my completion listbox, produced via CTRL-SPACE. I have been through these instructions 3 times in a row.

The only obvious difference is that I am reusing the same project, sometimes keeping the empty main function and sometimes deleting all code in the cpp file before trying again.

Can you please go to:

VA Options -> About -> Copy Info

and paste the details (from the clipboard) into this thread. This will give us the basic information about your setup.

Do you have any other plugin's installed?
brain Posted - Dec 04 2006 : 06:00:15 AM
I was able to reproduce it with 1541 too.
Turn off the suggestion listboxes, and use completeword manualy. Suggestion listboxes are correct.
How long does it take to forget about symbols? Reparse file, and even a restart of the IDE doesn't help here.
Does Completion Listbox and FindSymbol use the same source for symbols?


feline Posted - Dec 01 2006 : 3:52:33 PM
using VS2005 and VA 1541 I cannot reproduce these problems.

Sometimes VA takes a while to forget about symbols that have been renamed or deleted.

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