Hello,
i have the following problem, which seems like it may be a bug. i found a 2006 post on this issue, and the problem was reported as solved; however, it does not appear to be solved.
i am using Visual Studio 2005 (Win32) to do debugging on a Fortran program, which requires processing of an input file (fortran unit 5) called
acet.inp
the program compiles fine from within VS2005 using the Silverfrost FTN compiler, version 5.2.1, and i can step through the program using break points and 'run to cursor'; however, when the program is required to read some data from unit 5, it just hangs and does nothing despite the fact that i have specified the following launch arguments
< acet.inp > acet.out
if i execute the program, called VGROW, from the command line in the Win32 directory using the following
VGROW < acet.inp > acet.out
then the program executes fine, and reads the input file appropriately. it is only during debugging that the executable isnt finding the launch arguments.
i have found a fix to this problem by changing the source code to point to the location of acet inp, i.e., OPEN(5,FILE='path/filename', etc...). with this change, then everything works fine during debugging, and the input file is processed. it is only when i am trying to specify input using the launch arguments that i have problems.
additionally, i have noticed that if i change the launch arguments, and then want to begin debugging afresh, the source is recompiled, which seems rather unecessary.
any advice or any information on what i am doing wrong would be very much appreciated. as i said, i have gotten it to work by changing the source code to explicitly locate unit 5, but i would like to understand why the launch arguments are not being recognized.
thanks very much,
Dr David Glowacki