Hi!
I'am trying to recompile an existing program, written in fixed format, for the .NET platform. This program compiles and works fine for the Win32 platform, while it immediatly crashes if compiled for the NET, returning a Type Initialization Exception.
This is the minimum portion of the program generating the exception:
program test
implicit real(kind=2) (a-h,o-z)
character(len=120):: path_mod,pmodl,name_mod,nmodl
character(len=120):: name_hgt,nhght,name_cnv,nconv
character(len=120):: path_pnt,ppnts,name_pnt,npnts
character(len=120):: path_out,pout,name_out,nout
parameter(path_mod = ' ',
& path_pnt = ' ',
& name_pnt = 'INPUT.DAT',
& path_out = ' ',
& name_out = 'OUTPUT.DAT')
parameter(iumi = 11,
& lmin = 2,
& lmax = 2190,
& name_mod = 'EGM2008_to2190_TideFree',
& aegm = 6378136.3d0,
& gmegm = 0.3986004415d20,
& isub = 1,
& igrid = 0,
& isw = 82,
& exclud = 9999.0d0)
parameter(iuci = 13,
& jmin = 0,
& jmax = 2160,
& name_cnv = 'Zeta-to-N_to2160_egm2008')
stop
end
I cannot understand what's wrong. I'm working with FTN95 6 and Visual Studio 2008 on windows 7 x64.