Software Archive
Read-only legacy content
17061 Discussions

A 3-line program that doesn't run

WSinc
New Contributor I
626 Views
It seems to me a graceful shutdown would at least be expected.
Instead it gets in some kind of loop, and crashes with a stack overflow when I begin execution. It does not matter if the file exists or not.
================================================
program main
open(3,file='aquarius_2.mid',access='direct',form='unformatted')
end
0 Kudos
5 Replies
Steven_L_Intel1
Employee
626 Views
I notice you said you're using 6.0. How about updating to at least 6.1 and see what it does? I can't reproduce the problem with 6.1. Also, you're supposed to have a RECL= specification in there...

Steve
0 Kudos
WSinc
New Contributor I
626 Views
Ok, I saw the obvious need for an upgrade, so I'll try it again when I install that, and report back.

Regarding your comment about the RECL= specifier, shouldn't we at expect an error message that points to the problem?
0 Kudos
Steven_L_Intel1
Employee
626 Views
Well, when I run it, I get a run-time error about "inconsistent record length", but yes, I think the compiler should insist on RECL being specified. We'll look into that.

Steve
0 Kudos
WSinc
New Contributor I
626 Views
I put in a RECL=256 field, but still got the same thing.

I should have the 6.5 upgrade put in early next week, so we'll see if that cures it.

I mentioned this before, but I get two sets of parent directories because I didn't have STUDIO 6.0 . Doesn't that make it kind of difficult to have mixed languages in a project (assuming I should want that at some point) ?

If I migrate the C++ modules over to the new parent directory, they would be looking for the old DevStudio would they not?
0 Kudos
Steven_L_Intel1
Employee
626 Views
Visual Fortram 6.x integrates with Visual C++ 6.0 only - not 5.0. If you want to do mixed-language development, you'd need to install VC++ 6.0, which will use the same directory tree that Visual Fortran uses. DO NOT move any files from the DevStudio (MSVC 5) folders to the new folders create by VF6 - or you'll likely break things.

Steve
0 Kudos
Reply