Silverfrost Forums

Welcome to our forums

Fortran dll not running Win 7 32 bit Visual Studio

28 Mar 2014 4:22 #13902

I have an application built with Visual Studio 2010 and SilverFrost Fortran 95. The C# shell calls several Fortran 95 dll files. The compiled application runs fine on any 64 bit machine running either Windows 7 or Windows 8, but when I try to run it on a 32 bit machine running Windows 7, it crashes when any Fortran dll is accessed. The error message is:

Unhandled exception has occurred in your application. The type initializer for 'Fitter' threw an exception.

'Fitter' is one of the Fortran dlls.

Has anyone else experienced this problem? Any ideas on how I can fix this so it will also run on 32 bit machines?

Thanks

31 Mar 2014 8:38 #13909

That is strange. The opposite can happen, where on a 64-bit machine a 64-bit .NET process tries to use a 32-bit FTN95 DLL. Are the .NET versions the same?

31 Mar 2014 12:32 #13910

Yes, the .NET version is 4.5 on both computers.

31 Mar 2014 4:29 #13911

Are you able to send us an example to try?

31 Mar 2014 5:23 #13912

Yes. Here is a DropBox link to the installation file for the program as well as an input file.

install file: https://www.dropbox.com/s/w3eg2ac19f13exo/Install%20WinFitter%202.0.exe

input file: https://www.dropbox.com/s/tnfs6fq5mrpdvbb/XYUMa-Vband-run1.dat

Once the Fitter program is installed, select 'Run Fitter' from the menu bar. It will open a directory dialog. Select the provided input file XYUma-VBand-run1.dat.

With a 64 bit machine, it should run and produce four output files with the same file name, but with the extensions .out, .obs, .mod and .dif.

With a 32 bit machine, it will produce the error message I indicated in my initial post.

Thanks for your help.

Please login to reply.