Silverfrost Forums

Welcome to our forums

Problems with building an executable

20 Mar 2019 5:29 #23386

I have a program that has been thoroughly debugged. The program compiles successfully, and I get the object files but when I go to build and open the executable I get an error message that it has stopped working. The details show as follows:

Description: Stopped working

Problem signature: Problem Event Name: APPCRASH Application Name: smp93.exe Application Version: 0.0.0.0 Application Timestamp: 5c9274c5 Fault Module Name: KERNELBASE.dll Fault Module Version: 6.1.7601.17514 Fault Module Timestamp: 4ce7c78c Exception Code: e0434f4d Exception Offset: 000000000000a49d OS Version: 6.1.7601.2.1.0.256.1 Locale ID: 1033

Read our privacy statement online: http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409

If the online privacy statement is not available, please read our privacy statement offline: C:\Windows\system32\en-US\erofflps.txt

When I go the the MSDOS window, it says this:

Unhandled Exception: System.TypeInitializationException: The type initializer fo r 'smp93' threw an exception. ---> System.TypeInitializationException: The type initializer for 'Salford.Fortran.RTLibrary' threw an exception. ---> System.BadI mageFormatException: An attempt was made to load a program with an incorrect for mat. (Exception from HRESULT: 0x8007000B) at Salford.Fortran.RTLibrary.__com_plus_initialise(Int32 hin) at Salford.Fortran.RTLibrary.InitLibrary() --- End of inner exception stack trace --- at Salford.Fortran.RTLibrary.InitLibrary() at smp93..cctor() --- End of inner exception stack trace --- at smp93.SMP87()

Press RETURN to close window . . .

It worked with the older ftn77 (non windows using leahy fortran compiler) but not this one. I also noticed that the size of the executable is much smaller than it used to be (about 40% smaller)

20 Mar 2019 7:36 #23387

It looks like you are compiling for .NET. Is that what you want?

26 Mar 2019 9:33 #23403

Quoted from PaulLaidler It looks like you are compiling for .NET. Is that what you want?

No I'm not. I run my batch file and my object files compile and then I make a library out of them, but when I link the library to the main program using slink, it gives me the error

Salford exception error Fail to register registers dialogue procedure

I hit OK on that pop up and the next message reads

Access Violation: The instruction at 004196c8 attempted to read from location 002af20c and then a bunch of letters and numbers I don't understand.

I have listed below my compile link batch file:

rem PATH =C:\ftn95\BIN;c:\ftn95\lib;C:\DOS path = c:\users\aks\desktop\old c from Gamma\program files\silverfrost\ftn95 ftn95 AINPUT.FOR ftn95 AMDPRN.FOR ftn95 BILGEK.FOR ftn95 BKLIFT.FOR ftn95 BRWVSP.FOR ftn95 CDCOMP.FOR ftn95 CLIP.FOR ftn95 COFOUT.FOR ftn95 COS.FOR ftn95 CPINTG.FOR ftn95 CSOLVE.FOR ftn95 DATE.FOR ftn95 EDMKSP.FOR ftn95 EXFOR.FOR ftn95 FETCH.FOR ftn95 FIG11.FOR ftn95 FIG7.FOR ftn95 FINTSP.FOR ftn95 FNLIFT.FOR ftn95 FTWO.FOR ftn95 GRNFRQ.FOR ftn95 HLEDDY.FOR ftn95 HSTAT.FOR ftn95 HYD2D.FOR ftn95 INERST.FOR ftn95 INTRPL.FOR ftn95 JNWVSP.FOR ftn95 LRAO.FOR ftn95 LSCOF.FOR ftn95 NORMT5.FOR ftn95 ORGRAO.FOR ftn95 PADD.fOR ftn95 PINT.FOR ftn95 PRAO.FOR ftn95 PSPLC.FOR ftn95 PVAL.FOR ftn95 RAOPHA.FOR ftn95 RDBASE.FOR ftn95 RDEDDY.FOR ftn95 RDLIFT.FOR ftn95 RDPRIN.FOR ftn95 RDPelm.FOR ftn95 REGWAV.FOR ftn95 REVAL.FOR ftn95 RLITR.FOR ftn95 RMSOUT.FOR ftn95 RPHI2D.FOR ftn95 RSTITL.FOR ftn95 SBEDDY.FOR ftn95 SCB2.FOR ftn95 SERAB.FOR ftn95 SERE.FOR ftn95 SEVMOT.FOR ftn95 SKLIFT.FOR rem ftn95 SMP91.FOR ftn95 smp93-1.for ftn95 SPFIT.FOR ftn95 SPINTG.FOR ftn95 SPLNFT.FOR ftn95 SPLVAL.FOR ftn95 T2DAMD.FOR ftn95 TANAKA.FOR ftn95 TFNFIT.FOR ftn95 TRIM.FOR ftn95 TWODPT.FOR ftn95 VISC.FOR ftn95 WAVMAK.FOR ftn95 WTPELM.FOR ftn95 ACTFIN.FOR ftn95 ADRES.FOR ftn95 ALAG.FOR ftn95 ALGRNG.FOR ftn95 AMD.FOR ftn95 ATAN3.FOR ftn95 BKEDDY.FOR ftn95 BMAX.FOR ftn95 CALRGM.FOR ftn95 CEVAL.FOR ftn95 CMINR.FOR ftn95 CONIWT.FOR ftn95 CPFIT.FOR ftn95 CPLVAL.FOR ftn95 CUBCO2.FOR ftn95 DKWSLM.FOR ftn95 EQMOTN.FOR ftn95 EXPINT.FOR ftn95 FIG10.FOR ftn95 FIG56.FOR ftn95 FIG8.FOR ftn95 FNEDDY.FOR ftn95 FNRAO.FOR ftn95 GENOFS.FOR ftn95 GRNLOG.FOR ftn95 HLLIFT.FOR ftn95 HSTOUT.FOR ftn95 HYDCAL.FOR ftn95 INPUT.FOR ftn95 IRGSEA.FOR ftn95 LIMIT.FOR ftn95 LRAOUT.FOR ftn95 NORML.FOR ftn95 ORAO.FOR ftn95 OUTPUT.FOR ftn95 PDER.FOR ftn95 PMPY.FOR ftn95 PRELIM.FOR ftn95 PSPSC.FOR ftn95 RAOOUT.FOR ftn95 RAOPHS.FOR ftn95 RDCOMP.FOR ftn95 RDEVAL.FOR ftn95 READ.FOR rem ftn95 rdprin.for ftn95 RELMOT.FOR ftn95 RLITER.FOR ftn95 RMS.FOR ftn95 rmsout.for ftn95 RMSTOE.FOR ftn95 RSOLVE.FOR ftn95 RVSLAT.FOR ftn95 SBLIFT.FOR rem ftn95 splfil.for ftn95 SECT.FOR ftn95 SERD.FOR ftn95 SETSEV.FOR ftn95 SKFRSP.FOR ftn95 SKNFRC.FOR ftn95 SOLVE.FOR ftn95 SPINT2.FOR ftn95 SPLNAR.FOR ftn95 SPLNT2.FOR ftn95 SPPLV2.FOR ftn95 T3DAMD.FOR ftn95 TEPEAK.FOR ftn95 TOE.FOR ftn95 TRNLAT.FOR ftn95 VELACC.FOR ftn95 VUNIT2.FOR ftn95 WEDEFN.FOR ftn95 XMSSC.FOR rem DEL SMP91.LIB slim AINPUT.obj /file:smp91.lib slim SMP91.LIB AMDPRN.obj /file:smp91.lib slim SMP91.LIB BILGEK.obj /file:smp91.lib slim SMP91.LIB BKLIFT.obj /file:smp91.lib slim SMP91.LIB BRWVSP.obj /file:smp91.lib slim SMP91.LIB CDCOMP.obj /file:smp91.lib slim SMP91.LIB CLIP.obj /file:smp91.lib slim SMP91.LIB COFOUT.obj /file:smp91.lib slim SMP91.LIB COS.obj /file:smp91.lib slim SMP91.LIB CPINTG.obj /file:smp91.lib slim SMP91.LIB CSOLVE.obj /file:smp91.lib slim SMP91.LIB DATE.obj /file:smp91.lib slim SMP91.LIB EDMKSP.obj /file:smp91.lib slim SMP91.LIB EXFOR.obj /file:smp91.lib slim SMP91.LIB FETCH.obj /file:smp91.lib slim SMP91.LIB FIG11.obj /file:smp91.lib slim SMP91.LIB FIG7.obj /file:smp91.lib slim SMP91.LIB FINTSP.obj /file:smp91.lib slim SMP91.LIB FNLIFT.obj /file:smp91.lib slim SMP91.LIB FTWO.obj /file:smp91.lib slim SMP91.LIB GRNFRQ.obj /file:smp91.lib slim SMP91.LIB HLEDDY.obj /file:smp91.lib slim SMP91.LIB HSTAT.obj /file:smp91.lib slim SMP91.LIB HYD2D.obj /file:smp91.lib slim SMP91.LIB INERST.obj /file:smp91.lib slim SMP91.LIB INTRPL.obj /file:smp91.lib slim SMP91.LIB JNWVSP.obj /file:smp91.lib slim SMP91.LIB LRAO.obj /file:smp91.lib slim SMP91.LIB LSCOF.obj /file:smp91.lib slim SMP91.LIB NORMT5.obj /file:smp91.lib slim SMP91.LIB ORGRAO.obj /file:smp91.lib slim SMP91.LIB PADD.obj /file:smp91.lib slim SMP91.LIB PINT.obj /file:smp91.lib slim SMP91.LIB PRAO.obj /file:smp91.lib slim SMP91.LIB PSPLC.obj /file:smp91.lib slim SMP91.LIB PVAL.obj /file:smp91.lib slim SMP91.LIB RAOPHA.obj /file:smp91.lib slim SMP91.LIB RDBASE.obj /file:smp91.lib slim SMP91.LIB RDEDDY.obj /file:smp91.lib slim SMP91.LIB RDLIFT.obj /file:smp91.lib slim SMP91.LIB RDPRIN.obj /file:smp91.lib slim SMP91.LIB REGWAV.obj /file:smp91.lib slim SMP91.LIB REVAL.obj /file:smp91.lib slim SMP91.LIB RLITR.obj /file:smp91.lib slim SMP91.LIB RMSOUT.obj /file:smp91.lib slim SMP91.LIB RPHI2D.obj /file:smp91.lib slim SMP91.LIB RSTITL.obj /file:smp91.lib slim SMP91.LIB SBEDDY.obj /file:smp91.lib slim SMP91.LIB SCB2.obj /file:smp91.lib slim SMP91.LIB SERAB.obj /file:smp91.lib slim SMP91.LIB SERE.obj /file:smp91.lib slim SMP91.LIB SEVMOT.obj /file:smp91.lib slim SMP91.LIB SKLIFT.obj /file:smp91.lib slim SMP91.LIB SPFIT.obj /file:smp91.lib slim SMP91.LIB SPINTG.obj /file:smp91.lib slim SMP91.LIB SPLNFT.obj /file:smp91.lib slim SMP91.LIB SPLVAL.obj /file:smp91.lib slim SMP91.LIB T2DAMD.obj /file:smp91.lib slim SMP91.LIB TANAKA.obj /file:smp91.lib slim SMP91.LIB TFNFIT.obj /file:smp91.lib slim SMP91.LIB TRIM.obj /file:smp91.lib slim SMP91.LIB TWODPT.obj /file:smp91.lib slim SMP91.LIB VISC.obj /file:smp91.lib slim SMP91.LIB WAVMAK.obj /file:smp91.lib slim SMP91.LIB WTPELM.obj /file:smp91.lib slim SMP91.LIB ACTFIN.obj /file:smp91.lib slim SMP91.LIB ADRES.obj /file:smp91.lib slim SMP91.LIB ALAG.obj /file:smp91.lib slim SMP91.LIB ALGRNG.obj /file:smp91.lib slim SMP91.LIB AMD.obj /file:smp91.lib slim SMP91.LIB ATAN3.obj /file:smp91.lib slim SMP91.LIB BKEDDY.obj /file:smp91.lib slim SMP91.LIB BMAX.obj /file:smp91.lib slim SMP91.LIB CALRGM.obj /file:smp91.lib slim SMP91.LIB CEVAL.obj /file:smp91.lib slim SMP91.LIB CMINR.obj /file:smp91.lib slim SMP91.LIB CONIWT.obj /file:smp91.lib slim SMP91.LIB CPFIT.obj /file:smp91.lib slim SMP91.LIB CPLVAL.obj /file:smp91.lib slim SMP91.LIB CUBCO2.obj /file:smp91.lib slim SMP91.LIB DKWSLM.obj /file:smp91.lib slim SMP91.LIB EQMOTN.obj /file:smp91.lib slim SMP91.LIB EXPINT.obj /file:smp91.lib slim SMP91.LIB FIG10.obj /file:smp91.lib slim SMP91.LIB FIG56.obj /file:smp91.lib slim SMP91.LIB FIG8.obj /file:smp91.lib slim SMP91.LIB FNEDDY.obj /file:smp91.lib slim SMP91.LIB FNRAO.obj /file:smp91.lib slim SMP91.LIB GENOFS.obj /file:smp91.lib slim SMP91.LIB GRNLOG.obj /file:smp91.lib slim SMP91.LIB HLLIFT.obj /file:smp91.lib slim SMP91.LIB HSTOUT.obj /file:smp91.lib slim SMP91.LIB HYDCAL.obj /file:smp91.lib slim SMP91.LIB INPUT.obj /file:smp91.lib slim SMP91.LIB IRGSEA.obj /file:smp91.lib slim SMP91.LIB LIMIT.obj /file:smp91.lib slim SMP91.LIB LRAOUT.obj /file:smp91.lib slim SMP91.LIB NORML.obj /file:smp91.lib slim SMP91.LIB ORAO.obj /file:smp91.lib slim SMP91.LIB OUTPUT.obj /file:smp91.lib slim SMP91.LIB PDER.obj /file:smp91.lib slim SMP91.LIB PMPY.obj /file:smp91.lib slim SMP91.LIB PRELIM.obj /file:smp91.lib slim SMP91.LIB PSPSC.obj /file:smp91.lib slim SMP91.LIB RAOOUT.obj /file:smp91.lib slim SMP91.LIB RAOPHS.obj /file:smp91.lib slim SMP91.LIB RDCOMP.obj /file:smp91.lib slim SMP91.LIB RDEVAL.obj /file:smp91.lib slim SMP91.LIB RDPELM.obj /file:smp91.lib slim SMP91.LIB READ.obj /file:smp91.lib slim SMP91.LIB RELMOT.obj /file:smp91.lib slim SMP91.LIB RLITER.obj /file:smp91.lib slim SMP91.LIB RMS.obj /file:smp91.lib slim SMP91.LIB RMSTOE.obj /file:smp91.lib slim SMP91.LIB RSOLVE.obj /file:smp91.lib slim SMP91.LIB RVSLAT.obj /file:smp91.lib slim SMP91.LIB SBLIFT.obj /file:smp91.lib slim SMP91.LIB SECT.obj /file:smp91.lib slim SMP91.LIB SERD.obj /file:smp91.lib slim SMP91.LIB SETSEV.obj /file:smp91.lib slim SMP91.LIB SKFRSP.obj /file:smp91.lib slim SMP91.LIB SKNFRC.obj /file:smp91.lib slim SMP91.LIB SOLVE.obj /file:smp91.lib slim SMP91.LIB SPINT2.obj /file:smp91.lib slim SMP91.LIB SPLNAR.obj /file:smp91.lib slim SMP91.LIB SPLNT2.obj /file:smp91.lib slim SMP91.LIB SPPLV2.obj /file:smp91.lib slim SMP91.LIB T3DAMD.obj /file:smp91.lib slim SMP91.LIB TEPEAK.obj /file:smp91.lib slim SMP91.LIB TOE.obj /file:smp91.lib slim SMP91.LIB TRNLAT.obj /file:smp91.lib slim SMP91.LIB VELACC.obj /file:smp91.lib slim SMP91.LIB VUNIT2.obj /file:smp91.lib slim SMP91.LIB WEDEFN.obj /file:smp91.lib slim SMP91.LIB XMSSC.obj /file:smp91.lib slim SMP91.LIB READ.obj /file:smp91.lib rem CALL SMPLK91.BAT REM DEL *.obj /file:smp91.lib slink smp93-1.obj smp91.lib /file:smp93-1.exe

27 Mar 2019 6:36 #23404

If you are creating a Win32 application, LIB or DLL then you should be using SLINK and not SLIM. There should be only one SLINK session to do the linking.

You should also be clear about whether you want to build:

  1. an application or
  2. a DLL or
  3. an import LIB or
  4. a static LIB.

Each of these require different SLINK commands.

SLIM allows you to create a static Win32 LIB but you can also do this with SLINK.

Please login to reply.