I am using the Express edition of ftn95 and looking to update some old FORTRAN77 code to ftn95.
My old programs, which contain subroutines, used COMMON blocks for common storage areas, but I understand that MODULES are the way to go.
Whilst the code compiles successfully as either COMMON or MODULE, when trying to run the program via debug, I get the error message 'Unable to launch application for this file'.
The problem seems to lie in the size of arrays I'm declaring in either the COMMON block or MODULE.
In my module I have:
MODULE DATA_MODULE
REAL :: Array1(10), B, Array2(3500)
INTEGER :: Count = 0
INTEGER, PARAMETER :: Order = 10
END MODULE DATA_MODULE
and in the main program, the first lines of code are:
PROGRAM ModTest
USE DATA_MODULE
If I reduce the size of Array2 to, say, 1,000, then the program runs ok. I can also put very large arrays in the main program and it runs ok.
Assistance on where the problem lies would be much appreciated.