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
 CPP to H button does not work
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

deepv
New Member

7 Posts

Posted - Aug 31 2004 :  10:45:19 AM  Show Profile
I'm using the current environment (although it doesn't concern my problem):

VA_X.dll file version 10.0.1246.0
MSDev.exe version 6.0.8168.2
WindowsNT 5.1 Build 2600 Service Pack 1
Platform: Win32 (x86)

More important is the directory structure which has the a main directory, under which all general files reside, like .dsp, stdafx etc.
Inside this directory two subdirs reside: inc (for .h files), & src (for .cpp files).

When browsing .cpp file and pressing the .cpp/.h button, the corresponding .h file is opened, but the other way (.h to .cpp) does not work.

support
Whole Tomato Software

5566 Posts

Posted - Aug 31 2004 :  2:31:37 PM  Show Profile
We are unable to reproduce the problem.

Are both the header and cpp part of your project?

Have you renamed/moved files since last opening of your project?

Do you have multiple files with the same basename of your cpp?
Go to Top of Page

deepv
New Member

7 Posts

Posted - Sep 01 2004 :  05:32:44 AM  Show Profile
I'm dealing with a very large workspace, which includes about 30 projects.
In the first projects the switch from h to cpp and vise versa works, but it doesn't seem to work in the last projects. It seems like the algorithm performes a pre-mapping of h to cpp, but it lacks memory to map all files. Am I correct?
Go to Top of Page

schoenherr
Tomato Guru

Germany
160 Posts

Posted - Sep 01 2004 :  06:48:46 AM  Show Profile
deepv:
i don't beleave there is a lack of memory, causing your problem.
we have a workspace with about 110 projects with a realy huge amount of source files and we have no such problems
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Sep 01 2004 :  3:15:36 PM  Show Profile
Are both source and headers (of the files that do not find corresponding) in your projects? This is usually a problem with VA not being able to determine the correct include/source paths.
Go to Top of Page

deepv
New Member

7 Posts

Posted - Sep 02 2004 :  03:30:13 AM  Show Profile
Yes. All h and cpp are part of the project.
How can I (the user) afect VA include pathes? What could have gone wrong? Any suggestions how to fix it?
Go to Top of Page

deepv
New Member

7 Posts

Posted - Sep 02 2004 :  04:56:29 AM  Show Profile
Just to remind: cpp to h works fine. Everytime. It's pitty the h to cpp algorithm is not symmetric.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19025 Posts

Posted - Sep 06 2004 :  2:30:19 PM  Show Profile
using a very small C++ project in .NET 2003 i create two subdirectories, "source" and "include"

grabbing a .cpp and matching .h file from a different project, i put the .cpp file into the source directory, and the .h into the include directory.

i then added both of these to the project, opened the .cpp file via solution explorer, and used alt_o to swap to the .h file. VAX found and opened the .h file just fine.

pressing alt_o again opened the .cpp file in a new window, so i now have two copies of this file open. other than this oddity alt_o is swapping back and forward fine for me.

deepv, are you able to reproduce this in a small test project?

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

deepv
New Member

7 Posts

Posted - Sep 07 2004 :  10:54:59 AM  Show Profile
Can't reproduce this in a small test project. And that's the problem: something in our big workspace caused it (about 6000 files)
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19025 Posts

Posted - Sep 07 2004 :  6:28:52 PM  Show Profile
i have seen something quite similar in a big project myself, but that was several builds of VAX ago. i am sure you can understand that impossible to reproduce bugs can be hard to pin down *sigh*

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

deepv
New Member

7 Posts

Posted - Sep 08 2004 :  11:18:23 AM  Show Profile
I wrote before that cpp to h works fine. Why doesn't the other way works? Maybe it's better for you to implement both directions with the same algorithm.
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Sep 20 2004 :  6:47:49 PM  Show Profile
deepv:
We rewrote the algorithms that search for implementations. The updated algorithms will be part of a beta available soon. Send your license info to [email protected] and we will add you to the beta list.
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Oct 04 2004 :  3:33:20 PM  Show Profile
Build 1272+ is much better at finding implementations.
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