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
 Symbol table corruption
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

brain
Junior Member

Hungary
13 Posts

Posted - Dec 01 2006 :  08:28:21 AM  Show Profile  Reply with Quote
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

Edited by - brain on Dec 01 2006 08:33:02 AM

feline
Whole Tomato Software

United Kingdom
18942 Posts

Posted - Dec 01 2006 :  3:52:33 PM  Show Profile  Reply with Quote
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.

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

brain
Junior Member

Hungary
13 Posts

Posted - Dec 04 2006 :  06:00:15 AM  Show Profile  Reply with Quote
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?


Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18942 Posts

Posted - Dec 04 2006 :  09:40:07 AM  Show Profile  Reply with Quote
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?

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

brain
Junior Member

Hungary
13 Posts

Posted - Dec 04 2006 :  10:32:36 AM  Show Profile  Reply with Quote
-- 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?



Edited by - brain on Dec 04 2006 10:34:01 AM
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18942 Posts

Posted - Dec 04 2006 :  1:27:10 PM  Show Profile  Reply with Quote
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.

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

brain
Junior Member

Hungary
13 Posts

Posted - Dec 05 2006 :  04:39:22 AM  Show Profile  Reply with Quote
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.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18942 Posts

Posted - Dec 07 2006 :  5:54:36 PM  Show Profile  Reply with Quote
case=4004

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