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: Find References and CPU Spin
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Jul 26 2006 :  4:42:47 PM  Show Profile  Reply with Quote
I have found a CPU Spin, and I can reproduce it.

In VS 2005 do the following:
1. Create a New Win32 Project. (Press Finish, default settings will be fine)
2. Click "szWindowClass" symbol (in Line 12) and then Choose Find References from VAssistX menu (will found 4 references)
3. Copy a whole line (with enter), for example "// Global Variables:" (Line 9)
4. Press F8. Visual Studio now selects the "szWindowClass" symbol.
5. Write some character. VS replaces the symbol
6. Alt+Backspace (Undo command), and the symbol appears again.
7. Press Home.
8. Press Ctrl+V (paste)
9. Press F8 -> CPU Spin (VS freeze)

(Then sometimes requied to repeat the step 5, 6, 7, 8 and 9 about 2-3 times for CPU Spin)

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Jul 26 2006 :  8:17:18 PM  Show Profile  Reply with Quote
thank you for the very clear steps. unfortunately i cannot reproduce this *puzzled*
i seem to have followed these steps very carefully, and i have been round the last set of steps about 8 or 10 times, and still no sign of any problems.

do you have access to a different machine, to try this there?
do you have any other plugin's installed?
how "easy" is it to reproduce this? do tiny changes in the details, like using the keyboard rather than the mouse to perform the steps matter?

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

support
Whole Tomato Software

5566 Posts

Posted - Jul 27 2006 :  01:47:04 AM  Show Profile  Reply with Quote
Can you break into the spinning thread with another instance of the IDE and get a call stack?
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Jul 27 2006 :  11:58:00 AM  Show Profile  Reply with Quote
I have assigned Alt+E to Find References in VS.
I can reproduce the spin without keyboard (using the menu) but could you try to assign Alt+E to find references and try to reproduce again?

I will send you the call stack.
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Jul 27 2006 :  5:49:39 PM  Show Profile  Reply with Quote
I have played a little more with this bug, and I think this is not exactly a CPU spin. Yes, the IDE freezes, the hourglass appears, but there is no thread with 100% CPU load. All thread is about 0% in the task manager.

Asking to feline's question: there is no other plug-ins installed and currently there is no other computer with VS2005 and VAX 15xx installed near me.

(I tried to close all docked window except "VA Find References Results", and tried to choose any other keyboard shortcut for "Edit.GoToNextLocation" in tools/customize/keyboard button but neither of them avoid the freeze)

It is maybe a rare bug in VS2005 IDE.

So it would be nice to create a VAX command, keyboard shortcut or menu item into VAssistX main menu for goto to next reference in the "VA Find References Results" window. Something like "VAssist.NextReference" :)

If I remember correctly in Visual Studio 2003 (and probably in 6.0) there is no general keyboard shortcut that can be use for step to next Reference.

So VS2003 users also can profit from this feature. :)

If I'm right, and the error is in the IDE itself, it will resolve my problem also.

What do you think?
Go to Top of Page

jpizzi
Tomato Guru

USA
642 Posts

Posted - Jul 28 2006 :  02:44:30 AM  Show Profile  Reply with Quote
I was able to reproduce this. Unfortunately, attaching with another instance and breaking into the process did not yield a call stack (I got the message, "No symbols are loaded for any call stack frame. The source code cannot be displayed."

Joe Pizzi
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Jul 28 2006 :  06:10:56 AM  Show Profile  Reply with Quote
"I was able to reproduce this."

Great! I am happy :) Could you please create a case for this? :)

Tip: Can it be the problem that VAX tries to select the symbol, but the line has already moved? Maybe VS2005's editor do not like this. :)

In this case the VS2005's own Find All References jumps to wrong line and selects nothing.
Go to Top of Page

jpizzi
Tomato Guru

USA
642 Posts

Posted - Jul 29 2006 :  12:49:14 AM  Show Profile  Reply with Quote
Since you already sent a call stack (you said you did, anyway), I was going to see what came of that. But, you are right. I will look. If there is no case already created, I will create one (providing that I can repro it again today).

case=1876

Joe Pizzi

Edited by - jpizzi on Jul 29 2006 01:07:57 AM
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