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
 Another find previous/next by context issue
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

kevinsikes
Tomato Guru

USA
271 Posts

Posted - Apr 07 2005 :  11:23:24 AM  Show Profile
I have a situation where find by context is returning results from the wrong scope, and I've boiled it down to the simplest test case.
This is VAX 1299 on Visual C++ 6.0 Service Pack 6.

Steps to reproduce:
File - New - Project - Win32 Application - Simple Win32 Application. Add #include <wtypes.h> and the Foo and Bar functions listed in the source below. Notice that VAX correctly finds retval by context, restricting the search to the current scope. Now save the project, close it, and reopen it. Find by context now jumps between the two functions. Deleting the .ncb file and reopening the project does not help.

#include "stdafx.h"
#include <wtypes.h>

int APIENTRY WinMain(HINSTANCE hInstance,
                     HINSTANCE hPrevInstance,
                     LPSTR     lpCmdLine,
                     int       nCmdShow)
{
 	// TODO: Place code here.

	return 0;
}

VARIANT_BOOL Foo()
{
	VARIANT_BOOL retval = VARIANT_FALSE;
	return retval;
}

VARIANT_BOOL Bar()
{
	VARIANT_BOOL retval = VARIANT_FALSE;
	return retval;
}



By the way, the "Library Includes" portion of the information copied to the clipboard via the Copy Info button incorrectly lists Source dirs instead of Library dirs.

VA_X.dll file version 10.1.1299.0
VAOpsWin.dll version 1.2.0.4
MSDev.exe version 6.0.9782.2
Devshl.dll version 6.0.9782.0
Devedit.pkg version 6.0.9782.0
Font: Courier -13(Pixels)
Comctl32.dll version 5.82.2900.2180
WindowsNT 5.1 Build 2600 Service Pack 2
2 processors

Platform: Win32 (x86)
Stable Includes:
d:\\compiler\\sdkjul02\\include;
C:\\Program Files\\Microsoft Visual Studio\\VC98\\INCLUDE;
C:\\Program Files\\Microsoft Visual Studio\\VC98\\MFC\\INCLUDE;
C:\\Program Files\\Microsoft Visual Studio\\VC98\\ATL\\INCLUDE;
c:\\ntddk\\inc;

Library Includes:
C:\\Program Files\\Microsoft Visual Studio\\VC98\\MFC\\SRC;
C:\\Program Files\\Microsoft Visual Studio\\VC98\\MFC\\INCLUDE;
C:\\Program Files\\Microsoft Visual Studio\\VC98\\ATL\\INCLUDE;
C:\\Program Files\\Microsoft Visual Studio\\VC98\\CRT\\SRC;

Other Includes:




Kevin Sikes
Infotainment Platform Design Engineer
Ford Motor Company

feline
Whole Tomato Software

United Kingdom
19020 Posts

Posted - Apr 07 2005 :  6:43:59 PM  Show Profile
as far as i can tell i have followed your instructions exactly, and i am not seeing this problem.

the first time i did this i was using a mixture of VA 1244 and 1299 on VC6 with no service pack.

i have just downloaded and (hopefully) installed VC6 SP6 and redone the test using VA 1299 and still no sign of this problem.

the only oddity is that i cannot see any sign in VC6 to indicate that i have installed the service pack, but i know i installed it.

do you have any other plugin's installed? anything else odd that might account for this difference?

do you have a second machine you could use for testing? if you open this test project on a second machine and it shows the same bug then perhaps you could email me a zip of the project to try.

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

kevinsikes
Tomato Guru

USA
271 Posts

Posted - Apr 08 2005 :  12:10:49 PM  Show Profile
I tried on a different computer running Win2K. It worked at first, but then gave even stranger behavior. I clicked on the word retval (there was no selection highlight, only a blinking caret), then clicked Find Next by Context. This is what it gave me:

(In case the graphic is not available in the future, there is an odd selection highlighted - "L retv" - and an error message "Cannot find the string 'retval')
I think it may be time for a complete reinstall.
(Message edited to change graphic link)

Kevin Sikes
Infotainment Platform Design Engineer
Ford Motor Company

Edited by - kevinsikes on Apr 08 2005 3:39:39 PM
Go to Top of Page

WannabeeDeveloper
Tomato Guru

Germany
775 Posts

Posted - Apr 08 2005 :  2:43:10 PM  Show Profile
Kevin, somehow your picture doesn't show on my system.

Are you sure Yahoo allows direct linking to files?
If not, please mail it to [email protected], including the Thread-ID 3575

We'll gladly host the file for you...

Go to Top of Page

kevinsikes
Tomato Guru

USA
271 Posts

Posted - Apr 08 2005 :  3:48:42 PM  Show Profile
I tried to send the picture, but the email came back twice. Maybe I should find an ISP that can actually host files and deliver emails! (Or maybe I should blow the dust off my Internet for Dummies book and read a few pages .) I edited the original post to change the graphic hyperlink to a different server.
To answer you plugin question, the only other addin I have installed on these machines is one I wrote to emulate some Brief functionality that was either missing or implemented differently by M$.
Keep in mind that I'm using the July 2002 platform SDK, which is where wtypes.h will be read and parsed for the VARIANT_BOOL and VARIANT_FALSE definitions. Perhaps this is different in your setup.

Kevin Sikes
Infotainment Platform Design Engineer
Ford Motor Company
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19020 Posts

Posted - Apr 09 2005 :  3:06:41 PM  Show Profile
i can see the picture just fine, so it looks like the new host fixed it. for what its worth i find inserting pictures into my posts to be a problem as well *sigh*

exactly the same thing happened to me once, but only once. i cannot reproduce either the error message, or VA moving out of scope.

do you get the message box repeatedly, or was this a one off event?

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

kevinsikes
Tomato Guru

USA
271 Posts

Posted - Apr 11 2005 :  2:12:14 PM  Show Profile
On the second machine, I get the message box repeatedly. However, now everything works OK on my original machine -- I can't duplicate my original issue! I give up. Computers are of the devil.

Kevin Sikes
Infotainment Platform Design Engineer
Ford Motor Company
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19020 Posts

Posted - Apr 11 2005 :  2:27:10 PM  Show Profile
*sigh* i am not sure what to do here. something is going on, but it is proving very hard to pin down.

shouting and searing at the IDE tends to help, well it helps me to relax, which is close enough.

i will certainly enter a case if you can find a reproducible case, but for now ignoring the whole issue sounds like a good idea.

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000