Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29262 Discussions

Using VS 2005 and Vis Fortran 11.0 in debug configuration

gamoses
Beginner
1,435 Views
I can successfully run my fortran program in VS 2005 in Release mode using Start Without Debugging, but in Debug mode when I use Start Debugging I get an error that I cannot execute because either the working directory or the path name to the working directory is in error. I have set the working directory for both the release and the debug modes in the same way, using Properties. What am I missing?
0 Kudos
8 Replies
Lorri_M_Intel
Employee
1,435 Views

The most likely cause is fumbled fingers in setting these fields, to be honest.

To confirm, open the Property Page, and select Configuration Properties -> Debugging.

In the upper left hand corner of that dialog box is a selection for "Configuration:".

You can use "All Configurations" to assure that you set the same value for all configurations.

Does that work for you?

- Lorri

0 Kudos
gamoses
Beginner
1,435 Views
Hi Lorri, Did just as you said and got the same error. I've attached a screenshot pasted into Word. Many thanks for your response. This really has me stumped. I started years ago with the DEC compiler, which then became the Compaq compiler, which then became the HP compiler which is now the Intel compiler. I am on my second or third version of the Intel Fortran compiler running with VS. Have never had this problem before. ...Greg
0 Kudos
Steven_L_Intel1
Employee
1,435 Views
Please attach the .vfproj file from your project.
0 Kudos
gamoses
Beginner
1,435 Views
Hi Steve, I attached a vfproj file. I hope it is what you need. Also I installed the same VS 2005 and Intel Fortran on my desktop running XP and it works as expected. My laptop, where I get the unexpected result is running Vista if that is any help. ...Greg
0 Kudos
Steven_L_Intel1
Employee
1,435 Views

Interesting. I don't see anything amiss in the project file.

What is the path to your project? It isn't under C:\Program Files, is it? What happens if you copy the entire solution folder to your desktop and open it from there?

0 Kudos
Lorri_M_Intel
Employee
1,435 Views

One last file to look at please - in the same directory as bucky_hdf2.vfproj, you should onenamed something very similar to:

bucky_hdf2.vfproj.gamoses.user

If you type that file, it will show some configuration "stuff". Do the DebugSettings look the same for both Debug and Release configurations?

- Lorri

0 Kudos
gamoses
Beginner
1,435 Views

This is interesting...there are two files with this name format. I don't think there should be two. I am a pretty naive user, so I have only the simplest thing going here.

First file name: bucky_hdf2.vfproj.Greg Moses.user 7/15/2009

Contents:







Second file name: bucky_hdf2.vfproj.moses.user 1/22/2010

Contents:







The first file has references to working directory that is very old and is not what I am currently doing. The file date is also very old. The second file has the correct path name to my working directory, but release and debug are not the same.

0 Kudos
Steven_L_Intel1
Employee
1,435 Views
Delete both of them.
0 Kudos
Reply