Author |
Topic |
|
schoenherr
Tomato Guru
Germany
160 Posts |
Posted - May 22 2008 : 05:07:30 AM
|
at least in vc6 the content of the definition field remains empty during run time of "find references" regardless where I place the cursor. |
|
accord
Whole Tomato Software
United Kingdom
3287 Posts |
Posted - May 22 2008 : 06:23:06 AM
|
The behavior also presents in later Visual Studios also, and introduced about 2 generations ago. I think it is by design, but Feline may correct me |
Edited by - accord on May 22 2008 06:56:06 AM |
|
|
feline
Whole Tomato Software
United Kingdom
19022 Posts |
Posted - May 22 2008 : 4:36:30 PM
|
Can you try running a CPU monitor please, and see what the CPU usage is like?
I have a rather large test project (8891 files) and I have tried some tests with this. For one Find References search the CPU usage hovers around 50%, and the context and definition fields update quite happily while the find is running.
For a second search the CPU usage jumps to 100%, and the context and definition fields update somewhat randomly. Sometimes they will update, and sometimes they will not.
I have checked both VS2005 and VC6. It looks like this is simply down to the CPU being flat out, and there not being much time left over for anything else. |
zen is the art of being at one with the two'ness |
|
|
accord
Whole Tomato Software
United Kingdom
3287 Posts |
Posted - May 22 2008 : 7:45:26 PM
|
I have done some test. I started a longer find references, and if I staying in the same header file or it's cpp pair, the fields are okay.
But when I switch to a different file, it is always broken for me.
Sorry about "by design" , but I thought that additional parsing is disabled while a find references is running. |
Edited by - accord on May 22 2008 7:56:54 PM |
|
|
schoenherr
Tomato Guru
Germany
160 Posts |
Posted - May 23 2008 : 12:39:09 AM
|
I've done some tests: the cpu usage goes up to 50 percent which can be interpreted as 100 percent as I'm using a dual core machine we have some macros which are used in nearly every cpp in our workspace and so I can reach easyly runtimes up to a few minutes for the "find references" command. during this time the effect is 100 percent reproduceble even in the original cpp file. |
|
|
feline
Whole Tomato Software
United Kingdom
19022 Posts |
Posted - May 23 2008 : 09:52:46 AM
|
I have put in a bug report to see what our developers make of this:
case=16982
It is possible the problem lies partly in the IDE its self, due to the CPU load. If we are relying on the IDE to tell us the caret has moved, and it is not managing to do so, I am not sure what we can do in VA. |
zen is the art of being at one with the two'ness |
|
|
schoenherr
Tomato Guru
Germany
160 Posts |
Posted - May 23 2008 : 10:16:37 AM
|
@feline: at least the IDE manages to change the caret position. if i place the caret on an empty line the definition field correctly switches to display the current file name. so i suspect, that the IDE itself performs correctly. |
|
|
|
Topic |
|